|
|
|
|
|
by shadesandcolour
4494 days ago
|
|
But why make UIView subclasses when you don't have to? If I'm just using a tableview, and I need to lay that out, I'm not going to subclass UITableView. I'm just going to add one to my controller or use UITableViewController. If you're already making subclasses of UIView, then yes, do the layout code there, but for many applications this isn't necessary, and there's no where else to put that code. |
|
For that, though, you should make a separate class for the TableViewModel, to keep that code out of your ViewControllers.