In Xcode
when I create a new view controller to contain a tableview I have two options
- Create a new
UITableViewController
- Create a new
UIViewController
that implements theUITableViewDelegate
andUITableViewDataSource
protocols
Assuming I properly implement all of the required and optional methods for the protocols, is there any advantage (besides not having to write the method stubs) to using the UITableViewController
? means, is there anything (memory management, caching, etc.) implemented behind the scenes in the UITableViewController
class that makes option 1 a better choice than option 2?