开发者

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

How to hide tab bars and show full tableview on screen?

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

How to hide tab bars and show full tableview on screen?

As mentioned above, how can I hide the tabbar and ensure that the whole tableview is displayed on my screen?


myViewController.hidesBottomBarWhenPushed = YES;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜