【问题标题】:How to restrict the ImageView mask layer movement in iOS?如何限制 iOS 中的 ImageView 遮罩层移动?
【发布时间】:2016-04-13 06:35:30
【问题描述】:

我已经应用了剪贴蒙版效果(使用 MaskImage + OriginalImage = 剪贴蒙版效果图像)。

我将UIPanGestureRecognizer 设置为UIImageView

问题是我想单独移动图像而不是遮罩图像。

【问题讨论】:

  • 你是怎么解决这个问题的,请分享一些代码,尝试解决问题很多天

标签: ios objective-c uiimageview mask uipangesturerecognizer


【解决方案1】:

也许你可以尝试使用hitTest来传递触摸,但也想知道细节

【讨论】:

    猜你喜欢
    • 2015-03-23
    • 1970-01-01
    • 1970-01-01
    • 2018-01-06
    • 1970-01-01
    • 2014-02-09
    • 1970-01-01
    • 1970-01-01
    • 2014-07-20
    相关资源
    最近更新 更多