我重写了- (void)sendEvent:(UIEvent *)event
UIApplication 的方法来处理一些触摸事件。
。H
@interface myUIApplication : UIApplication {
}
.m
@implementation myUIApplication
- (void)sendEvent:(UIEvent *)event {
NSLog(@"a event catched");
[super sendEvent:event];
}
@end
我将文件所有者的类编辑为 MainWindow.xib 中的 myUIApplication。但是当我触摸屏幕时没有像@“a event catched”这样的输出
我有什么错误吗?
谢谢!