launchOptions 第一次是 不会调用 didreceiveLocalNotification这个方法的,
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- (void)checkLaunchOptions:(NSDictionary*)options
{
if (!becomeActiveFirst || !options) {
return;
}
UILocalNotification* local = [options objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
[self.navigationControllerpopToRootViewControllerAnimated:NO];
if (local) {
[selfpushLocalNotificaton:local];
return;
}
}