当用户触摸我的 UIWebview 时,我正在使用 hittest 来接听。我需要知道用户何时停止触摸视图,但我没有从 hittest 获得任何事件。是否有其他功能可以做到这一点?
- (void)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
NSLog(@"Event type:%@", event.type);
if (event.type == UIEventTypeTouches) {
NSLog(@"Got something");
}
// call the super
[super hitTest:point withEvent:event];
}