views:

126

answers:

2

if so, how do i setup my uitabbarcontroller in IB? all the examples ive seen create the uitabbarcontroller in the app delegate.

+1  A: 

You can use a UITabBarController where you'd ordinarily use a UIViewController, but your users will be confused. Tab bar controllers are designed to be application-wide bars that switch between contexts.

Jeff Kelley
can you show sample code?
Sheehan Alam
i just tried it and got the following error: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "test2ViewController" nib but the view outlet was not set.'
Sheehan Alam
That message means that you need to set the view outlet in Interface Builder.And I don't have sample code because I don't recommend doing it.
Jeff Kelley
how can i set the view controller? IB wont let me drag.
Sheehan Alam
A: 

i am able to display the tab-bar controller modally

Sheehan Alam