UIViewController -viewDidLoad not being called

前端 未结 10 2176
感动是毒
感动是毒 2020-12-09 07:52

Being new to Cocoa, I\'m having a few issues with Interface Builder, UIViewController and friends.

I have a UIViewController s

10条回答
  •  渐次进展
    2020-12-09 08:44

    SOLUTION FOUND!!!!!

    Even something as innocuous as this makes the viewDidLoad method call happen.

    Insert this right after alloc initWithNibName

    viewController.view.hidden = NO; //calls viewDidLoad
    

提交回复
热议问题