ios - masory中如何使用viewController的topLayoutGuide?
大家讲道理
大家讲道理 2017-04-17 17:32:47
0
1
706

自动布局第三方masory如何使用topLayoutGuide?如题

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
阿神

topLayoutGuidebottomLayoutGuide These are attributes added to UIViewController after iOS 7.

topLayoutGuide usually represents the upper part of the current page blocked by StatusBar and NavigationBar. This can be used in Masonry’s API:

[myView mas_makeConstraints:^(MASConstraintMaker *make) {
    // 把 myView 的 top 和 self(UIViewController) 的 topLayoutGuide 的那部分界面的 top 对齐。
    make.top.equalTo(self.mas_topLayoutGuide);
    // ...
}];
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template