Detected a case where constraints ambiguously suggest a height of zero

后端 未结 23 805
猫巷女王i
猫巷女王i 2020-12-07 09:31

After updating to Xcode 6.1 beta 2 when I run my app that contains tableview cells, the debug assistant says:

Warning once only: Detected a case where constr         


        
23条回答
  •  醉话见心
    2020-12-07 10:18

    In the storyboard set the cell Row height field with the same value as Row height in tableView (both with the same value worked for me).

    If you add heightForRowAtIndexPath function to your code it may induce a performance issue because it will be called for each cell so be careful.

提交回复
热议问题