美文网首页
scrollView自动布局小技巧

scrollView自动布局小技巧

作者: uubird | 来源:发表于2016-03-03 16:35 被阅读0次

UIView *container = [UIView new];

[scrollView addSubview:container];

[container mas_makeConstraints:^(MASConstraintMaker *make) {

make.edges.equalTo(scrollView);

make.width.equalTo(scrollView);

}];

[container mas_makeConstraints:^(MASConstraintMaker *make) {

make.bottom.equalTo(lastView.mas_bottom);

}];

相关文章

网友评论

      本文标题:scrollView自动布局小技巧

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