Last line in UITableView closed by UITabBar

I have a UITabBarController that has a list of UINavigationControllers assigned to the viewControllers property.

Each UINavigationController has a custom UIViewController as its "rootController", and that custom UIViewController loads its "view" from the .xib file. This "view" contains the UITableView (and some other controls that are displayed when the data for the UITableView is first loaded).

Everything works great from the start - I can see the table view for the first view controller, when the first tab is selected, changing the tabs displays other table views - everything is fine.

My problem is that when I select a row in one of these table views, a new custom view controller is instantiated that should hide the bottom bar on click and then injected into the navigation controller. Again - this works as expected. I can see the new subview and tab bar are hidden.

The problem is that when I go back to the previous view, the last row in my UITableView is now shaded by the tab bar (which appeared correctly). It seems that the process of hiding the bottom bar and then showing it again when it reverts to its previous view has confused things.

Has anyone come across this? Any idea what I might be doing wrong?

+1


a source to share


1 answer


Make sure the UITableView does not have a UIViewAutoresizingFlexibleHeight (in IB, see the picture below).



alt text http://www.quicksnapper.com/files/5161/20375276064A0C11D2C33A4_m.png

+1


a source







All Articles