iOS8 - constraints ambiguously suggest a height of zero

前端 未结 18 1859
青春惊慌失措
青春惊慌失措 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:24

    What can also be done is adding vertical constraints from the top and to the bottom of the content view. This will make autolayout happy (because he now knows how to calculate the height of the cell himself).

提交回复
热议问题