Question

I am trying to create a basic tab bar application, with 4 tabs, without using the 'storyboard' feature, My problem is that when the app lunches, It desplays the first tab as my first view, but I want to display a custom xib like my 'main menu' with 4 unselected tabs, and only when I press on one of the tabs, the specific choosen page/nib will open, is there a way to do it?

p.s. I didnt post any code because I am talking about the most basic implementation of xcode's tabed bar application

Picture of what I am trying to accomplish is attached.

http://tinypic.com/view.php?pic=2s15hme&s=5

Was it helpful?

Solution

I'm not sure whether this will be acceptable to Apple, since a tab bar controller should always show a selected tab -- it might violate the HIG. I think it would be better to display a modal view controller at startup for your menu screen, which wouldn't show tabs, but could have buttons (corresponding to the tabs) to take you directly to one of the tabs when the modal controller is dismissed. If you present this controller from the viewDidAppear method of the controller in the first tab (with no animation), it will be the first thing the user sees.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top