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;

    }

 

}

posted @ 2013-07-22 17:03  路在脚下,  阅读(569)  评论(0编辑  收藏  举报