I am developing an application using the UINavigatorController. I use the viewDidAppear method in the second clicked viewController to search for information on an external server.
Well. Although it worked fine in iOS5 at the beginning, I realized that viewDidAppear is not called in iOS4.3, so I put this code in the root directory:
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated { [viewController viewDidAppear:animated]; }
After that, the application began to work correctly in iOS4.3. However, in iOS5, not because it called viewDidAppear twice (the one that was called first, but one from navigationController:didShowViewController:animated:
What if you only called viewDidAppear?
Many thanks
source share