Hey guys
I recently switched over from designing my iPhone layouts programmatically to inside IB, and I can't say I'd recommend it just yet. Here's what I'm trying to accomplish:
I have a UINavigationController, handled by the delegate. It pushes the first view controller on at launch time, then each view controller from then on just uses [self.navigationController push...] yadda yadda.
Now, picture this as a completely linear, horizontal layout. So I have something like:
NavController (On Top)
ViewController -> ViewController -> View Controller
Not too difficult. *BUT* now I want to add a fourth view controller to the end, that is actually a TabBarController, and that's where I'm having issues. I'm currently doing this:
ViewController -> ... -> ViewController (which, at init, performs a [self.view addSubview:tabBarController.view])
This works *ok*, but I'm getting a very strange issue where the top of that view is blank! It looks like:
<Status Bar>
<Navigation Bar>
<20px of Blank Space> (status bar size?)
<Root View of TabBarController>
<TabBar>
(Am I allowed to attach pictures? If I am, I will. )
So does anyone know what I'm doing wrong? I can't figure it out for the life of me! In IB, that first view has a simple tableview, which is set to fill by default, and then the tab bar at the bottom. Has anyone else run into this problem? Thanks!!
I recently switched over from designing my iPhone layouts programmatically to inside IB, and I can't say I'd recommend it just yet. Here's what I'm trying to accomplish:
I have a UINavigationController, handled by the delegate. It pushes the first view controller on at launch time, then each view controller from then on just uses [self.navigationController push...] yadda yadda.
Now, picture this as a completely linear, horizontal layout. So I have something like:
NavController (On Top)
ViewController -> ViewController -> View Controller
Not too difficult. *BUT* now I want to add a fourth view controller to the end, that is actually a TabBarController, and that's where I'm having issues. I'm currently doing this:
ViewController -> ... -> ViewController (which, at init, performs a [self.view addSubview:tabBarController.view])
This works *ok*, but I'm getting a very strange issue where the top of that view is blank! It looks like:
<Status Bar>
<Navigation Bar>
<20px of Blank Space> (status bar size?)
<Root View of TabBarController>
<TabBar>
(Am I allowed to attach pictures? If I am, I will. )
So does anyone know what I'm doing wrong? I can't figure it out for the life of me! In IB, that first view has a simple tableview, which is set to fill by default, and then the tab bar at the bottom. Has anyone else run into this problem? Thanks!!