I move a hidden uilabel to the tap point in a uiscrollview and then unhide it – works great. However when you pinch the uiscrollview to zoom in and tap again the label shows up in the wrong position. How can I scale the touchpoint by the scale of the uiscrollview to position it correctly?
-me
-(void)handleLongPress:(UILongPressGestureRecognizer*)sender {
CGPoint longTapPoint = [sender locationInView:self.view];
NSLog(@"LongTapPoint.x %f,LongTapPoint.y %f",longTapPoint.x,longTapPoint.y);
uil_tapBldgLabel.center = CGPointMake(longTapPoint.x, longTapPoint.y);
}
You may want to pass these touch events to the nextResponder so you do not get caught up with the scaling nuances.