您的位置:首页 > 其它

使用Masonry 对scrollView做布局

2016-04-06 16:38 197 查看
UIScrollView *mainScroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, W, H)];
[self.view addSubview:mainScroll];
[mainScroll mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.mas_equalTo(self.view);
// 让scrollview的contentSize随着内容的增多而变化
make.bottom.mas_equalTo(carInfoTable.mas_bottom).offset(20);
}];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: