why do i get “Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES” in xcode 6 beta

前端 未结 9 1386
死守一世寂寞
死守一世寂寞 2020-12-01 10:38

I have the following code in a swift UITableViewController, but i get a \"Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES exception at th

相关标签:
9条回答
  • 2020-12-01 10:58

    This is NOT a bug, you simply cannot use a UIView as cell for table view, you must make sure the top level view in the nib file is a UITableViewCell.

    0 讨论(0)
  • 2020-12-01 11:00

    In my case, I was loading a nib file with a UITableViewCell contained in a UIView. After disabling autolayout in the nib file, I haven't got the exception again.

    0 讨论(0)
  • 2020-12-01 11:06

    In my case i was using a UITableViewCell in a UIView to create a custom cell

    then I deleted the cell from the UIView and then added the all the contents in the UIView directly and that solved my problem.

    Hope it helps you too. All the best

    0 讨论(0)
提交回复
热议问题