ios - iphone 使用Masonry之后,如何检查自己的Autolayout布局是否正确?
PHPz
PHPz 2017-04-18 09:37:08
0
1
638

如题,我在tableview cell中,使用Masonry做自动布局,但是使用systemLayoutSizeFittingSize:UILayoutFittingCompressedSize 来计算的行高为0,证明我的Autolayout有错,不过我不知道怎么去检查这个?

PHPz
PHPz

学习是最好的投资!

reply all(1)
Ty80

There is no "effective" way to check whether the constraints are correct. You can only figure out whether the constraints are satisfied and whether the cell can be fully supported.

You can refer to this article: self-satisfied cell

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!