views:

24

answers:

1

Hi,

Is there any way in iPhone to unselect all tabs of a UITabBarController ? ie, my application has a "homepage" which does not belong to any tabs on the below displayed tabbar. Now when user touches any tab on the tabbar, I would like to load the corresponding tab. Is this possible ? I have already tried:

self.tabBarController.tabBarItem.enabled = NO; self.tabBarController.selectedIndex = -1;

but this does not help. Any other solutions ? Please ?

+1  A: 

Showing a tab bar with no tab selected would break user experience. A tab bar should always have one element selected and show the appropriate page - everything else is confusing.

So if you need to show something else, you should make it a popover (i.e. a sliding sheet from the bottom) that can be dismissed.

Eiko
I agree. But my client wants this ! The expectation is to show a "home page" (separate view controller)and a tabbar, with no tabs selected. When user clicks on any tab, the corresponding view controller has to be loaded. ie, the homepage has to be a view controller which does not belong to any of the tabs ? any ideas ? please help ?
tuttu47