搞定了,一个是重复,一个是 判断navigationcontroller里面 最后的那个类,

   NotificationViewController *controller = [[NotificationViewControlleralloc]initWithNibName:@"NotificationViewController"bundle:nil];

        controller.isFromAppDelegate = YES;

    if (![[self.navigationController.viewControllerslastObject] isKindOfClass:[NotificationViewControllerclass]]) {

        [self.navigationController pushViewController:controller animated:YES];

 

    }

 

缓存,生命周期,什么时候 诞生,什么时候睡觉,什么时候激活,什么时候 死亡,最好清楚点,

//    UILocalNotification *localNotif = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];

//    if (localNotif)

//    {

//        NSLog(@"Recieved Notification %@",localNotif);

//        NSDictionary* infoDic = localNotif.userInfo;

//        NSLog(@"userInfo description=%@",[infoDic description]);

//        NSString* codeStr = [infoDic objectForKey:@"闹钟"];

//        TTLog(@"%@",codeStr);

//    }

暂时塞这,出问题了再说,

缺少一点逻辑:那个 提醒设置 的有限期限没有添加,

原文地址:https://www.cnblogs.com/guligei/p/3184226.html