开发绘图、手势综合App注意点

pellen 10 0 PDF 2021-01-16 16:01:52

手势的一些注意事项 对于 UITapGestureRecognizer 来说我们一般需要知道该点击手势在屏幕中的位置 (locationInView:self) 对于 UIPanGestureRecognizer 来说我们一般需要知道我们的滑动手势移动了多少距离 (translationInView:pan) -(void) pan: (UIPanGestureRecognizer * ) pan { CGPoint transP = [pan translationInView: pan.view]; //$1 = (x = 0.73990527317289434, y = 0)

用户评论
请输入评论内容
评分:
暂无评论