1

我有一个在 Objective-C 中实现两个协议的接口,我想将它包装在 Monotouch 中。

@interface GDExtended : NSObject <UIApplicationDelegate,GDiOSDelegate>
- (void) handleEvent:(GDAppEvent *)anEvent; 
@end

所需的方法HandleEvent属于 GDiOS 协议,但它需要UIApplicationDelegate与视图通信。

问题是,当我在 Monotouch 的示例应用程序中扩展此类时,我得到一个NSInternalInconsistencyException

原因:( AppDelegate类注册的名称)没有实现UIApplicationDelegate.

任何帮助将不胜感激。

谢谢 !!

4

0 回答 0