When I receive a local notification i do the following:
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notif { [navController popToRootViewControllerAnimated:NO]; [navController pushViewControll开发者_StackOverflower:notificationSplashViewController animated:YES]; }
If my notificationSplashViewController
is the current ViewController, its viewWillAppear()
method is not invoked. How can I detect the re-push of notificationSplashViewController
?
Try:
[notificationSplashViewController.view removeFromSuperview];
[navController popToRootViewControllerAnimated:NO];
[navController pushViewController:notificationSplashViewController animated:YES];
for me, this did the trick.
精彩评论