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);
// }
暂时塞这,出问题了再说,
缺少一点逻辑:那个 提醒设置 的有限期限没有添加,