iOS 用手指调整图像蒙版大小和移动图像蒙版
我正在尝试用手指调整图像上的蒙版大小并移动蒙版。为了移动蒙版,我需要触摸来移动手势,为了调整大小,我需要实现捏合缩放手势。
一般来说,我想用手指操作图像蒙版,而不是以编程方式。
我怎样才能实现这个目标?
谢谢大家!
I am trying to resize and move mask on image with fingers. For moving the mask I need touch to move gesture and for resize I need to implement pinch-to-zoom gesture.
Generally I want to manipulate image mask with my fingers, not programatically.
How can I achieve this?
Thanks to you all!
我在苹果的开发者页面找到了答案。
I have found the answer at the Apple's Developer page.