我有一个具有 IBOutlet 的自定义 UIWindow 类
@interface MyWindow
IBOutlet UIView * someView;
id <MyWindowDelegate> delegate;
// to inform a controller something happened to view
@end
@interface MyControllerThatContainsSomeView
IBOutlet UIWebView * theConcreteView;
@end
我已将 MainWindow.xib 中的 Window 更改为 MyWindow。有没有办法,通过界面生成器,我可以从MyControllerThatContainsSomeView.xib引用someView
所以,MainWindow.MyWindow.someView -> MyControllerThatContainsSomeView.theConcreteView