ERROR with UITableViewCell

Hi developers


I have a problem with my UITableViewCell in the Storyboard. I want to place a single Cell in a UIViewController (B), NOT in a UITableView.


But I get an error, when I click on the button in an other UIViewController (A), that shows the second UIViewController (B). The error is: Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES. (Xcode 7)

At the moment there isn't any code in relation with this Cell or ViewController.


I hope you can unterstand my problem - I'm not a native English speaker - and help me with my problem.

I would recommend that you don't place table view cells anywhere else but inside table views. Anything that you think you can do with the cell in that case you should be able to do with plain old views.


Also, cells are intended to be used only inside table views and there are undoubdetly private things that happen between the table view and the cell that you can't know about. For instance that method _setHostsLayoutEngine: is undoubdetly a private method that we don't know about.


Why do you want to do this?

I completely agree with BaldEagle. If you need the same content both in the cell and somewhere else, put it in a XIB and load it programmatically in both places. Don't try and use a table view cell outside a table view.

Thank you for your answers. As I read out of your comments, it isn't possible to place a single cell without a table view?

ERROR with UITableViewCell
 
 
Q