What is the difference between UIViewController and UITableViewController

后端 未结 3 858
醉梦人生
醉梦人生 2021-02-05 21:37

Sometimes I want to subclass UIViewController for some app wide customizations. Eg. something that all view controllers should perform during viewDidLoad or viewWillAppear or so

3条回答
  •  失恋的感觉
    2021-02-05 21:43

    It seems that the UITableViewController takes care of a lot of management issues that really you could just do for yourself, if you wanted to. Check out the documentation -- it will automatically create a UITableView for you, reload it, etc.

提交回复
热议问题