大家好,我正在尝试使用UIPanGestureRecognizer上的以下代码移动UIImageView
CGPoint pointMove;
pointMove.x = holderView.center.x + (currentPoint.x - lastPoint.x);
pointMove.y = holderView.center.y + (currentPoint.y - lastPoint.y);
holderView.center = pointMove;
lastPoint = currentPoint;但这给移动不顺利带来了混乱。请帮帮我
发布于 2013-01-09 17:51:07
我得到了一个使用UIPanGestureRecognizer拖动图像的最佳示例
请下载此演示并进行检查:
https://github.com/elc/iCodeBlogDemoPhotoBoard
希望是你的帮助
这里有一些相同的问题,请访问链接:-
Drag + Rotation using UIPanGestureRecognizer touch getting off track
swapping images using pan gesture
How to use UIPanGestureRecognizer to move object? iPhone/iPad
https://stackoverflow.com/questions/14232159
复制相似问题