Handling gesture recognizers in iOS6

前端 未结 3 742
春和景丽
春和景丽 2021-02-07 13:19

Apparently iOS 6 tries to automatically handle the situation when you have a gesture recognizer and a UIButton in the same place, being activated for the same gestu

3条回答
  •  悲&欢浪女
    2021-02-07 14:07

    I know it seems simplistic, but have you considered setting the UIButton's userInteractionEnabled property to "NO"? That should remove it automatically from the hit testing and gesture recognition system.

提交回复
热议问题