Cocoa - How to connect view's delegate to file's owner in storyboard mode?

后端 未结 2 784
傲寒
傲寒 2021-02-19 10:23

When I use an .xib, I connect a view\'s delegate to the File\'s Owner via interface builder, then go into the view controller\'s .h file and set it as the delegate to complete t

2条回答
  •  忘了有多久
    2021-02-19 10:52

    your NGLView should be in a view controller - you could use that view controller as the delegate.

提交回复
热议问题