赞
踩
-(BOOL)application: (UIApplication*)applicationdidFinishLaunchingWithOptions: (NSDictionary*)launchOptions{
//Overridepointforcustomizationafterapplicationlaunch.//用户自己点击启动if(!launchOptions){
NSLog(@"用户点击app启动");
}else{
NSURL*url=[
launchOptionsobjectForKey: UIApplicationLaunchOptionsURLKey
];//app通过urlscheme启动if(url){
NSLog(@"app 通过urlscheme启动 url = %@",
url);
}UILocalNotification*localNotification=[
launchOptionsobjectForKey: UIApplicationLaunchOptionsLocalNotificationKey
];//通过本地通知启动if(localNotification){
NSLog(@"app 通过本地通知启动 localNotification = %@",
localNotification);
}NSDictionary*remoteCotificationDic=[
launchOptionsobjectForKey: UIApplicationLaunchOptionsRemoteNotificationKey
];//远程通知启动if(remoteCotificationDic){
NSLog(@"app 通过远程推送通知启动 remoteCotificationDic = %@",
remoteCotificationDic);
}
}returnYES;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。