我将一个隐藏的uilabel移动到uiscrollview中的分接点,然后取消隐藏它 - 效果很好。但是,当您捏合uiscrollview进行放大并再次点按时,标签会显示在错误的位置。如何通过uiscrollview的比例缩放接触点以正确定位?
-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);
}
答案 0 :(得分:1)
您可能希望将这些触摸事件传递给nextResponder,这样您就不会陷入缩放细微差别。