So I have a Subclass of UIView that is suppose to detect touches. The view detect touches only if the touches started inside the current view. When the touches start outside
this should fix it:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [[event allTouches] anyObject]; for (UIView* subView in self.subviews) { if([subView pointInside:[self convertPoint:touch toView:subView] withEvent:event]) { //do your code here } } }