سؤال

I have a view that contains a subclass of a UIControl.

Occasionally I want to add a tap gesture recognizer to the view that should override any other touches on the children views.

By default gesture recognizer should cancel all other touches in view. However, my UIControl still gets triggered. Is that expected behavour?

هل كانت مفيدة؟

المحلول

I haven't found an answer to this particular problem. So the solution in my situation was to use a different combination of actions to achieve the desired outcome.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top