Prevent automatic popToRootViewController on double-tap of UITabBarController

Posted by NilObject on Stack Overflow See other posts from Stack Overflow or by NilObject
Published on 2009-12-04T22:10:41Z Indexed on 2010/05/13 16:14 UTC
Read the original article Hit count: 334

The default behavior of a UITabBarController is to pop the contained UINavigationController to the root view controller when a particular tab is tapped a second time. I have a particular use case where I'm wanting this to not work automatically, and I'm having a hard time figuring out how to prevent this.

Has anyone run into this, and if so, what did you do? Do I need to subclass UINavigationController and override popToRootViewController or is there a simpler way?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk