Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blueeye

macrumors member
Original poster
Oct 27, 2007
80
0
Hi,

I've been trying to create an application which uses a navigation controller to select a "person" and then uses a tab controller to allow you to select different "tabs" of information.
I can get this to work, but for one annoyance: The bottom of the tabs is below the level of the screen and the views are not being properly resized.
I've attached screenshots of everything just to help anyone to understand the problem.
I've searched around but can't find anything. Any help would be much appreciated.
 

Attachments

  • details_view.jpg
    details_view.jpg
    94 KB · Views: 87
  • iphone_simulator.jpg
    iphone_simulator.jpg
    135.3 KB · Views: 75
  • tab_view.jpg
    tab_view.jpg
    50.6 KB · Views: 68
Doesn't look like your tab bar controller view is taking into account the screen space needed for the navigation bar.

... I realise that, I'm trying to fix it...
 
You're not being short with me, are you? :confused:

I wouldn't dream of it.
Maybe a little because I know what's going on, but I don't really know why. They why is where I need to go before I can find the how of fixing it.:apple:
 
Okay, in case this helps anyone understand the problem better than I do (because I don't understand it at all):

I tried removing the navigation bar at the top of the navigation controller, but it made no difference. Either that space is reserved for such anyway, or something is funny with the UITabController.
I also tried resizing the UITabController's view but I couldn't find a way to do it (well, one that worked). Most of what I tried to do was make it autoresize via Interface Builder. Needless to say, attempts failed.
The whole tab business has been a bit dodgy from the way it's "resized" the tabbed views to it's own quite obvious problem so I wonder if maybe there's a better way of incorporating it into the navigation controller? I considered using modal views but am not sure if that will help. Can anyone shed any light on this?
 
Did you try adding a Navigation Bar as the Top Bar in the Simulated Interface Elements section for your Tab Bar Controller?

I just tried to do it now but although Interface gave me the option, if I tried to set it as such it immediately switched back. Maybe such an attempt is disallowed?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.