viewDidAppear called when popping navigationController
Posted
by Tiago
on Stack Overflow
See other posts from Stack Overflow
or by Tiago
Published on 2010-04-21T02:03:48Z
Indexed on
2010/04/21
2:13 UTC
Read the original article
Hit count: 508
I'm having a bit of a problem with the viewDidAppear: method. I have a tabBarController with navigationControllers on each tab, and I have an action that requires that all the navigation controllers pop to their rootViewControllers (programmatically).
The problem is that when they pop each navigation controller, the rootViewController's viewDidAppear get's called without it actually being shown. This causes them to do some stuff they were not supposed to (like showing alerts) unless they are actually shown.
Besides having to check the currently selected tabBar item, is there any other way to solve this?
Thanks.
© Stack Overflow or respective owner