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
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
.
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.
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