美文网首页
setEdgesForExtendedLayout

setEdgesForExtendedLayout

作者: 萧城x | 来源:发表于2016-01-12 16:29 被阅读260次

在iOS 7中,苹果引入了一个新的属性,叫做[UIViewController setEdgesForExtendedLayout:],它的默认值为UIRectEdgeAll。当你的容器是navigation controller时,默认的布局将从navigation bar的顶部开始。这就是为什么所有的UI元素都往上漂移了44pt。

相关文章

网友评论

      本文标题:setEdgesForExtendedLayout

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