我将隐藏的 uilabel 移动到 uiscrollview 中的点击点,然后取消隐藏它 - 效果很好。但是,当您捏住 uiscrollview 以放大并再次点击时,标签会显示在错误的位置。如何按 uiscrollview 的比例缩放接触点以正确定位它?
-我
-(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);
}