I'm having a simple draw tool, a UIImageView with AspectFit that isn't full window and UIImage inside ImageView. And following
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
if ([touch tapCount] == 2) {
_imageView2.image = _introImage2;
}
location = [touch locationInView:touch.view];
lastClick = [NSDate date];
lastPoint = [touch locationInView:self.imageView2];
lastPoint.y -= 0;
[super touchesBegan: touches withEvent: event];
}
This work correct if UIImageView if full window. How to set UITouch only for UIImageView?