iphone - iOS SDK UITabBarController only shows one of two UIViewControllers -


I am trying to create an iPhone application with a tabs: one for the game and one for the other.

However, when I add UIViewControllers

  [_ tabBarController by using setViewControllers: [NSArray arrayWithObjects: self.viewController, self.viewController2, zero] Animated: No]   

This shows only the first one.

I have tried to set the title property of each of my view controllers, then by adding them, I

  [_viewController setTabBarItem: [[UITabBarItem alloc ] Has tried to initWithTitle: @ "Something" image: Zero Tag: 0]]   

and named in the last operation Also tried
However, I do not think I can show more than a tab on the screen.
Any help is greatly appreciated. Thanks,
Michael

Did viewController2 zero and it did not load yet? Make sure that you have properly connected it while using IB.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -