我有一个UIView的子类,它应该检测触摸。该视图仅在触摸从当前视图内开始时才检测到触摸。当触摸从视图外部开始并移动到我的自定义视图内部时,touchesMoved不会被调用。有没有解决办法来检测未在当前视图内开始的移动触摸?
@implementation MycustomView
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
// This only gets called if touches have started in the current View
}
@end