所以我有一个 UIView 的子类,它假设可以检测触摸。仅当触摸在当前视图内开始时,视图才会检测触摸。当触摸在视图之外开始并且它们在我的自定义视图中移动时,touchesMoved 不会被调用。有什么解决方案可以检测当前视图中尚未开始的移动触摸?
@implementation MycustomView
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
// This only gets called if touches have started in the current View
}
@end