views:

320

answers:

3

Hey everyone, running into a bit of an issue,

I have created all my views through IB, with the main window having a NavigationController, and a TabBarController which loads a TableViewController in its first tab.

The problem happens when i use the searchbarcontroller in the navigation controller, everything works fine with the exception that when the navigation bar at the top disappears, the table expands too high, and i can't figure out what im doing wrong.

Attached is an image of what im referring to, any help would be greatly appreciated.

alt text

Some more information:

i have my MainWindow with a UINavigationController, and a UITabBarController. On the first Tab, i have it loading another nib "AVN_TableController" which is a UITableViewController nib, with the Searchbar delegate.

A: 

If you've set your view sizes correctly in Interface Builder and are using the "Simulated Interface Elements" to cause the status bar, navigation bar, and tab bar to display, it should work correctly. If not, then what comes to mind is this issue where displaying an action sheet has it's tappable rectangle offset by the height of the tab bar because it is added to the wrong view. Not sure if that would apply here, but it's at least something to consider.

Matt Long
thanks, ill look into this and let you know. Yeah, i have the simulated interface elements showing.
James Hall
A: 

I ended up going the route of creating my own tabbarcontroller, as that was causing the issue.

James Hall
A: 

Hi, I have exactly the same problem. Can you please tell me, how you solved the issue? Thank you very much.

Mario

Mario
Hi mario,what i did was that i created a viewcontroller with a view that basically looked and acted like a tabbarcontroller, however it was just a plain old uiviewcontroller, on top of the navigation controller, and i just had to program my own interactions. while it did add a lot more programming on my side, its much more customized and works like a charm.thanks!
James Hall