UIViewController -viewDidLoad not being called

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

    RE: SOLUTION FOUND!!!!!

    Indeed that seems to be a working solution, however the real trick is not in setting the view.hidden property to NO, what makes the view load from the nib file is the calling of the UIViewController's view method, the view only actually gets loaded from the nib when the view method is called for the first time.

    In that sense, a simple [viewController view] message would force the view to load from the nib file.

提交回复
热议问题