How to get touches when parent view has userInteractionEnabled set to NO in iOS

前端 未结 4 606
予麋鹿
予麋鹿 2020-11-28 08:38

When the parent view has userInteractionEnabled=NO, its subviews will not accept touch events even if their userInteractionEnabled property is set to YES.

Is there a

4条回答
  •  暖寄归人
    2020-11-28 09:12

    A work around would be to disable the userinteraction of buttons etc to nil rather than disabling the user interaction of the whole parent view

提交回复
热议问题