隐藏 tabbar 之后位置界面下方会出现一片黑色区域

隐藏 tabbar 之后位置界面下方会出现一片黑色区域
发布时间: 2016-07-22 11:09

回答:

把 tabbar 设为 window 的 rootViewController,在隐藏 tabbar 后在位置界面下面可能会出现黑色区域,解决方法如下:

在隐藏 tabbar 时,下面两个方法要结合使用,

self.tabBarController.tabBar.hidden = YES;
self.hidesBottomBarWhenPushed = YES;


具体可参考

http://blog.csdn.net/lrenjun/article/details/8805117