使用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); }];
相关文章推荐
- Masonry布局框架的使用
- 使用ScrollView属性fillViewport解决android布局不能撑满全屏的问题
- Masonry 自动布局使用案例
- ios - masonry第三方库使用自动布局(参考:http://www.cocoachina.com/ios/20141219/10702.html)
- scrollView使用masonry
- 自动布局库--Masonry使用
- Masonry — 使用纯代码进行iOS应用的autolayout自适应布局
- 自动布局框架Masonry介绍与使用实践:快速上手Autolayout [转载]
- 在项目中使用Masonry实现自动布局Autolayout(1)
- Masonry的约束布局,scrollView与cell的自动适配
- Masonry的介绍与简单使用-自动布局
- 第三方库Masonry自动布局AutoLayout使用
- 使用ScrollView属性fillViewport解决android布局不能撑满全屏的问题
- iOS 自适应布局库-Masonry的使用
- 65群组详情的布局(GridView和ScrollView一起使用的解决)
- 详解ios中scrollView上使用masonry
- iOS 使用masonry布局,并实现展示动画
- Masonry代码自动布局的简单使用。
- 代码布局Masonry介绍与使用实践(快速上手Autolayout)
- Masonry布局框架的使用