UIScrollview与Autolayout的那点事
前言
自从写了介绍Masonry那篇文章以后 就一直有人对UIScrollView的那个例子不是很理解
UIView *container= [UIViewnew];
[scrollView addSubview:container];
[containermas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(scrollView);
make.width.equalTo(scrollView);
}];
http://adad184.com/2015/12/01/scrollview-under-autolayout/
网友评论