-viewDidLoad not called in subclassed UIViewController

前端 未结 3 2037
长发绾君心
长发绾君心 2020-12-29 14:32

Have patience with me, I\'m still learning Cocoa Touch. Other -viewDidLoad not being called question was unrelated to my issue, I did search.

I have FooViewCo

3条回答
  •  北海茫月
    2020-12-29 14:33

    I have had this same problem twice. The first time, I forgot to connect the view of UITableViewController to the actual UITableView in interface builder. The second time, I forgot to make awakeFromNib call itself in the superclass.

提交回复
热议问题