PDA

View Full Version : Can't figure out "More" tab on TabBar app




crisss1205
Aug 14, 2010, 01:31 PM
I am using a Tab Bar and have more than 5 "pages" the OS adds the more tab but the problem is that if an item is in the more tab it has a double navigation bar.

Image one is if it's selected from the "More" list.
Image two is if it's selected directly from the tab bar.

How can I fix this problem. (NOTE: I am using IB)



robbieduncan
Aug 14, 2010, 01:36 PM
Use the viewDidAppear or viewWillAppear and hide the additional navigation bar.

crisss1205
Aug 14, 2010, 01:55 PM
Use the viewDidAppear or viewWillAppear and hide the additional navigation bar.

I was going to do that but didn't know how to detect if its being viewed from the more list or directly from the tab bar. I was thinking of using the frame size but was wondering if there is a easier way.

robbieduncan
Aug 14, 2010, 01:57 PM
Well I'd check if your view controller has a valid navigationController (http://developer.apple.com/iphone/library/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/navigationController) set.