0

I ask because I've just downloaded two example swift projects: one is a todo-list, the other is a contacts list, both use UIViewController class conformed to UITableViewDelegate/UITableViewDataSource protocols instead of UITableViewController. Is there anything different between those two practice at all?

in code: class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {...}

vs.

class ViewController: UITableViewController {...}

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Fate Riddle
  • 364
  • 1
  • 3
  • 15
  • yes the diff is you can change tableview size in UIViewController but you can do that in UITableveiwController:P – Nitin Gohel May 14 '16 at 06:07
  • do more research on google. you must look at this awsome answer : http://stackoverflow.com/questions/14465447/are-there-any-advantages-to-using-a-uitableviewcontroller-over-a-uiviewcontrolle – maddy May 14 '16 at 14:30

0 Answers0