UIPanGestureRecognizer中locationInView和translationInView的区别
locationInView:指手第一次按下时触发点相对于屏幕的坐标
translationInView:向左滑动/向右滑动时,相对于触发点的偏移量
比如:
- (void)pan:(UIPanGestureRecognizer *)pan{
CGPoint location = [pan locationInView:self.view];
CGPoi
原创
2017-06-30 15:26:40 ·
999 阅读 ·
0 评论