84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
自动布局第三方masory如何使用topLayoutGuide?如题
光阴似箭催人老,日月如移越少年。
topLayoutGuide 和 bottomLayoutGuide 都是 iOS 7 后 UIViewController 增加的属性。
topLayoutGuide
bottomLayoutGuide
topLayoutGuide 通常表示当前页面的上方被 StatusBar 和 NavigationBar 遮挡的部分。在 Masonry 的 API 中可以这样用:
[myView mas_makeConstraints:^(MASConstraintMaker *make) { // 把 myView 的 top 和 self(UIViewController) 的 topLayoutGuide 的那部分界面的 top 对齐。 make.top.equalTo(self.mas_topLayoutGuide); // ... }];
topLayoutGuide
和bottomLayoutGuide
都是 iOS 7 后 UIViewController 增加的属性。topLayoutGuide 通常表示当前页面的上方被 StatusBar 和 NavigationBar 遮挡的部分。在 Masonry 的 API 中可以这样用: