如题,我在tableview cell中,使用Masonry做自动布局,但是使用systemLayoutSizeFittingSize:UILayoutFittingCompressedSize 来计算的行高为0,证明我的Autolayout有错,不过我不知道怎么去检查这个?
PHP中文网2017-04-18 09:39:08
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