UIViewController -viewDidLoad not being called

前端 未结 10 2166
感动是毒
感动是毒 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:41

    Apart from other answers here,

    It often happens when the identifier with which you instantiate your ViewController from the storyboard is incorrect. For e.g.

    [[self getStoryboard] instantiateViewControllerWithIdentifier:MyVC];

    If MyVC is the identifier of some other ViewController, this might happen.

    OP is using nib instead of storyboard here. But the answer applies.

提交回复
热议问题