微信支付:首先需要在入口函数注册://向微信注册 [WXApi registerApp:APP_ID withDescription:@"微信Api"];注册回调delegate:- (BOOL)application:(UIApplication *)application handleOp...
分类:
微信 时间:
2015-06-01 14:35:50
阅读次数:
441
TheUIApplicationclass provides a centralized point of control and coordination for apps running on iOS. Every app must have exactly one instance ofUIA...
分类:
移动开发 时间:
2015-05-31 23:14:02
阅读次数:
273
#pragma mark 在应用程序加载完毕之后调用
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSLog(@"didFinishLaunchingWithOptions-加载完毕");
...
分类:
移动开发 时间:
2015-05-31 09:28:40
阅读次数:
183
iOS中的事件
在用户使用app过程中,会产生各种各样的事件
iOS中的事件可以分为3大类型
—— 触摸事件 ———— 加速计事件 ———— 远程控制事件— 响应者对象
在iOS中不是任何对象都能处理事件,只有继承了UIResponder的对象才能接收并处理事件。我们称之为“响应者对象”
UIApplication、UIViewController、UIView都继承自UIResponder,...
分类:
移动开发 时间:
2015-05-30 07:04:01
阅读次数:
245
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"abcd://"]];要知道跳转程序的Schemes就可以通过上述代码跳转
分类:
其他好文 时间:
2015-05-29 15:44:09
阅读次数:
129
电话、短信是手机的基础功能,iOS中提供了接口,让我们调用。这篇文章简单的介绍一下iOS的打电话、发短信在程序中怎么调用。1、打电话 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10010"]];//...
分类:
移动开发 时间:
2015-05-29 15:19:12
阅读次数:
120
使用的是豆瓣的音频播放类导入头文件#import #import #import 远程控制事件接收与处理- (void)viewWillAppear:(BOOL)animated{[super viewWillAppear:animated];[[UIApplication sharedApplic...
分类:
移动开发 时间:
2015-05-27 19:04:09
阅读次数:
259
获取当前视图的TopViewController AppDelegate *appdelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
UIViewController* topViewController = appdelegate.baseTabBarController.navigationContr...
分类:
移动开发 时间:
2015-05-26 21:28:32
阅读次数:
138
调用者:
只需要执行以下调用方法,以“://”为分隔符,左边就是要调用APP的地址,右边是你要传给这个APP的参数。
NSURL *url = [NSURL URLWithString:@"Ceshi001://aaaaaaa"];
[[UIApplication sharedApplication] openURL:url];
被调用者:
info.plist文件...
分类:
移动开发 时间:
2015-05-26 19:03:36
阅读次数:
124
IOS8之后增加了UIAlertController类,它可以表示UIAlertView和UIActionSheet.它继承自UIViewController。- (BOOL)application:(UIApplication *)application didFinishLaunchingWit...
分类:
其他好文 时间:
2015-05-25 17:58:55
阅读次数:
176