美文网首页
iOS automaticallyAdjustsScrollVi

iOS automaticallyAdjustsScrollVi

作者: iOS坚持者 | 来源:发表于2018-12-11 17:48 被阅读7次

https://www.jianshu.com/p/0c29e222430f
https://www.jianshu.com/p/b42030a37953
iOS11.0 contentInsetAdjustmentBehavior改变的是 adjustContentInset 而不是 contentInset

 //设置不透明
     self.navigationController.navigationBar.translucent = NO;
     self.tabBarController.tabBar.translucent = NO;
     
     当navBar和 tabBar 透明时候,extendedLayoutIncludesOpaqueBars无影响,
       self.view.frame =  {{0, 0}, {375, 667}}
     当navBar或 tabBar 不透明时候:
     NO,UIRectEdgeAll:self.view.frame = {{0, 64}, {375, 554}}
     YES,UIRectEdgeAll:self.view.frame = {{0, 0}, {375, 667}}

相关文章

网友评论

      本文标题:iOS automaticallyAdjustsScrollVi

      本文链接:https://www.haomeiwen.com/subject/hkmehqtx.html