So I've got this UIView subclass that delegates methods from UIPickerView and UITableView etc...is it a bad programming practice in Coca to subclass this subclass?
Would my subclass also need delegate methods (assuming the logic isn't being changed)? In other words, is it mandatory? I'm planning on using about 5 different views across my tableViewController and I was debating having one ginormous class that has all the layout logic layed out and a bunch of "if" statements to decide the right methods to call for the 5 views.
OR I can create just a class that has all the layout logic and subclass that for different methods that should be called. What is the best and/or common practice?
Darthtroll
Would my subclass also need delegate methods (assuming the logic isn't being changed)? In other words, is it mandatory? I'm planning on using about 5 different views across my tableViewController and I was debating having one ginormous class that has all the layout logic layed out and a bunch of "if" statements to decide the right methods to call for the 5 views.
OR I can create just a class that has all the layout logic and subclass that for different methods that should be called. What is the best and/or common practice?
Darthtroll