View Code? Open in Web Editor
NEW
Different Autolayout examples with Masonry. 用Masonry写的Autolayout案例,持续更新中。详细解答请看tutuge.me
Home Page: http://tutuge.me
Objective-C 99.90%
Ruby 0.10%
autolayoutexamplewithmasonry's Introduction
Basic info:
Skills:
- 🌟Good - iOS (Objective-C mainly), Flutter
- ⭐Medium - Android, Java, C++
- ✨Little - Python, PHP, Web staff (HTML, JavaScript, CSS, React)
autolayoutexamplewithmasonry's People
Contributors
autolayoutexamplewithmasonry's Issues
我把_label2的content compression改成1000 [_label2 setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal]; 或者把设置content hugging和content compression的这四行代码都注释了..运行起来效果好像没区别呀
在 Case4:UITableView 变高中 发现一个问题 :
如上图,如果我把 titleLabel
和 contentLabel
的字体变小,然后在 contentLabel
一行的情况下,cell 的高度就不对了,因为这时候 imageView
的高度大于两个 Label
高度的总和,所以 cell 的高度应当等于 imageView
的最大 y 值加上 someMargin,这时候要怎么解决?或者说这种情况下约束怎么加(要求不手动算高)?