application.applicationIconBadgeNumber = 0;
// Handle launching from a notification
UILocalNotification *localNotif =[launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
if (localNotif) {
NSLog(@"Recieved Notification %@",localNotif);
}
return YES;
我正在 lauchoptions 未宣布我的os veriosn是4和xcode i 3.2.3
答案 0 :(得分:0)
那么,你从哪里得到变量“launchOptions”?据推测,你正在使用
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
你重命名了这个论点吗?也许您需要展示更多代码......