Quote:
Originally Posted by Cardinal
Do I need to setup a view controller for each of these different table views? I think that i do, but not sure. Also, does each different view controller also needs its own delegate class?
|
The most likely design will be one controller class for each view.
Only those things that need delegates need delegates, and your basic UIViewController subclass doesn't. You can think of a delegate as a designated target class for named callbacks.
For instance: UITableView has a number of delegate methods it calls to get its data and to report user interaction, and it's customary to have the UIViewController that controls that view be the table's delegate. SO customary, in fact, that there's a UIViewController subclass called UITableViewController that combines those two things for you.