edgesForExtendedLayout&& extendedLayoutIncludesOpaqueBars&&translucent

来源:互联网 发布:电脑上淘宝怎么发链接 编辑:程序博客网 时间:2024/05/16 15:57
  • edgesForExtendedLayout:self.view能延伸到屏幕的方向

  • extendedLayoutIncludesOpaqueBars:延伸的布局是否包括bar,只在不透明的时候有作用

edgesForExtendedLayout = UIRectEdgeNone下,以navigationBar左下为子视图起点,self.view.bounds.size会减去64高度。
edgesForExtendedLayout = UIRectEdgeAll(默认值)navigationBar.translucent = NO// 不透明extendedLayoutIncludesOpaqueBars = NO时,会以navigationBar左下为子视图起点,self.view.bounds.size会减去64高度
edgesForExtendedLayout = UIRectEdgeAll(默认值)navigationBar.translucent = NO,extendedLayoutIncludesOpaqueBars = YES时,会以左上为起点,self.view.bounds为全屏。
edgesForExtendedLayout = UIRectEdgeAll(默认值),navigationBar.translucent = YES,extendedLayoutIncludesOpaqueBars = YES/NO;都会以左上为起点,self.view.bounds为全屏

参考: http://www.jianshu.com/p/ec56a55c759c

阅读全文
0 0
原创粉丝点击