I see videos where they add labels, etc. into the prototype section of a UITableViewController
through the storyboard. Is this the same as if I was just adding those objects to a regular UIViewController
?
I did try, but I was running into problems with constraints. If I copy and pasted an NSLayoutConstraint
from a UIViewController
, I would start receiving errors. So I assume constraints are handled differently also. For example, instead of using view.CenterX
, it would be contentView.CenterX
right?
Edit: I forgot to mention that I'm not exactly sure where the code should go. It seems like it should go into the UITableViewController
, because that's where the prototype cell is, but in sample code, I see it added to the UITableViewCell
.