search

Home  >  Q&A  >  body text

ios - iphone 使用Masonry之后,如何检查自己的Autolayout布局是否正确?

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

PHPzPHPz2783 days ago695

reply all(1)I'll reply

  • PHP中文网

    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

    reply
    0
  • Cancelreply