美文网首页
edgesForExtendedLayout&&

edgesForExtendedLayout&&

作者: i诺离 | 来源:发表于2017-11-30 18:05 被阅读15次
  • 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

相关文章

网友评论

      本文标题:edgesForExtendedLayout&&

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