How to hide tab bars and show full tableview on screen?
In my app's implementation, I have a tabbar controller with 5 different tabs.
After I hide my tab bar via the following code
- (void)hideTabBar
{
for(UIView *view in self.tabController.view.subviews)
{
if([view isKindOfClass:[UITabBar class]] || [view isKindOfClass:[UIButton class]])
{
view.hidden = YES;
}
}
}
I still see the bottom portion of my tableview obscured by a white rectangular section (previously occupied by visible tabbar)
For example, before I hide the tab bar
After I hide the tab bar, the tableview still does not completely show on the screen, the bottom section is still occupied by a white rect开发者_如何学Pythonangular space (previously occupied by the tab bar
As mentioned above, how can I hide the tabbar and ensure that the whole tableview is displayed on my screen?
myViewController.hidesBottomBarWhenPushed = YES;
精彩评论