如题,我在tableview cell中,使用Masonry做自动布局,但是使用systemLayoutSizeFittingSize:UILayoutFittingCompressedSize 来计算的行高为0,证明我的Autolayout有错,不过我不知道怎么去检查这个?
学习是最好的投资!
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
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