iOS8 - constraints ambiguously suggest a height of zero

前端 未结 18 1807
青春惊慌失措
青春惊慌失措 2020-12-02 14:15

Has anyone got any idea how to debug this?

Warning once only: Detected a case where constraints ambiguously suggest a height of zero for a tableview c

18条回答
  •  离开以前
    2020-12-02 14:47

    The constraints can be happy for the purpose of layout, but not happy for the purpose of automatic row height. A happy layout would mean the content can be laid out without ambiguity. That would satisfy the checks in Interface Builder.

    A happy layout for automatic row height would mean that, in addition to the above, you're also including constraints to the bottom of the cell.

    More here: Detected a case where constraints ambiguously suggest a height of zero

提交回复
热议问题