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
2010-06-15 03:21:47
can you show sample code?
Sheehan Alam
2010-06-15 03:44:21
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
2010-06-15 03:52:18
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
2010-06-15 13:44:45
how can i set the view controller? IB wont let me drag.
Sheehan Alam
2010-06-15 22:13:57