News for hackers. Stuff that matters.
Re:Laying Out iOS UIs in Code by lyinsteve on Sunday March 02, 2014 @09:23PM (#7331694)
Specifically UITableView is a bad example here, because UITableView relies heavily on the `UITableViewDelegate` and `UITableViewDataSource`.

For that, though, you should make a separate class for the TableViewModel, to keep that code out of your ViewControllers.

Re:Laying Out iOS UIs in Code by shadesandcolour on Sunday March 02, 2014 @09:33PM (#7331725)
Well, maybe. UITableViewDelegate and UITableViewDataSource don't have anything to do with the layout of that tableview. But let's say I have a bunch of labels, or textfields, or buttons or imageViews. All of those stock classes will do a pretty good job without subclassing, and for many applications, there's no need to subclass them. If you're doing your layout in code, where else does the layout code go other than the Viewcontroller that manages all those objects.