iOS: TapGestureRecognizer Issues

前端 未结 3 864
我寻月下人不归
我寻月下人不归 2020-12-18 15:59

So I have an app that behaves like a photo gallery and I\'m implementing the ability for the user to delete the images. Here is the setup: I have 9 UIImageViews, imageView,

3条回答
  •  猫巷女王i
    2020-12-18 16:55

    The easiest thing I can think of off the top of my head is to have the gesture disabled by default, and then have the gesture enabled once the edit button is hit. This way, the picture will only respond to the tap gesture recognizer if it is in "Edit" mode.

提交回复
热议问题