viewDidLoad in NSViewController?

前端 未结 6 511
走了就别回头了
走了就别回头了 2020-12-01 02:15

On the iPhone I use UIViewController\'s viewDidLoad to run code to set up the view.

How can I do that with NSViewController?

6条回答
  •  遥遥无期
    2020-12-01 02:31

    why don't you try this:

    - (void)awakeFromNib {
        //setup code
        NSLog(@"hello there");
    }
    

提交回复
热议问题