转载自:http://stackoverflow.com/questions/6625493/pop-and-push-the-same-view-does-not-invoke-the-viewwillappear-method
Pop and push the same view does not invoke the viewWillAppear() method
When I receive a local notification i do the following: - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notif { [navController popToRootViewControllerAnimated:NO]; [navController pushViewController:notificationSplashViewController animated:YES]; }
If my
|
|||
...... [self performSelector:@selector(thePushMethod) withObject:nil afterDelay:0.5]; } [self hideDial]; } - (void)thePushMethod { [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:0] animated:YES]; } |
nested push animation can result in corrupted navigation bar
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
– Ivan Leonardi Jul 9 '11 at 12:59