三方框架之masonry

时间:2023-03-08 21:13:51
三方框架之masonry

这个详细的介绍:http://www.cocoachina.com/ios/20141219/10702.html

Masonry 源码:https://github.com/Masonry/Masonry

Masonry支持属性与NSLayoutAttrubute的对照表如下

三方框架之masonry

使用, 导入Masonry ,包含#import "Masonry.h"文件,

[self.detailView mas_makeConstraints:^(MASConstraintMaker *make) {

make.top.equalTo(self.scrollView).with.offset(0);

make.width.equalTo(self.view).with.offset(0);

}];

具体做法头连接有