viewcontroller full screen conte

2018-05-15  本文已影响13人  liboxiang

如果用xib,则xib中也要设置

self.tabBarController.tabBar.translucent = NO;
self.extendedLayoutIncludesOpaqueBars = NO;
Snip20180515_1.png
self.tabBarController.tabBar.translucent = YES;
或者
self.tabBarController.tabBar.translucent = NO;
self.extendedLayoutIncludesOpaqueBars = YES;
Snip20180515_2.png
self.tabBarController.tabBar.translucent = YES;
self.edgesForExtendedLayout = UIRectEdgeNone;
Snip20180515_1.png

如果遇到从当前界面跳转到下一个界面的时候,导航栏多出来一个或者tabbar隐藏不了等问题的,大部分情况都是automaticallyAdjustsScrollViewInsets状态是YES造成的,那么这时候可以在viewDidLoad这个方法里面加一句:self.automaticallyAdjustsScrollViewInsets = NO; 不让它自动留出空白。

self.navigationController.interactivePopGestureRecognizer.delegate = (id)self;
上一篇 下一篇

猜你喜欢

热点阅读