我注意到,与创建在
Xcode 4.2测试版4的iPhone主从模板创建一个新项目时,它的作用:
// AppDelegate.h @interface AppDelegate : UIResponder <UIApplicationDelegate>
为什么AppDelegate中从UIResponder而不是NSObject的继承?
解决方法
从
Converting to Storyboards Release Notes:
Note: In the current Xcode templates,the application delegate class inherits from UIResponder. This is so that the delegate instance can participate in the responder chain and so handle application-level actions. If you haven’t made use of this pattern in an existing application,there’s no need to adopt it for storyboards.