Make UIView pass through touch events?

后端 未结 1 690
闹比i
闹比i 2021-02-06 21:01

Is there a way to make a UIView unresponsive AND pass through all touch events? Basically I just want to display graphics on top of other UIViews without blocking touch events.<

相关标签:
1条回答
  • 2021-02-06 21:57

    The event sent to your view will go through the responder chain, if it doesn't implement any event handling method.

    You could also set the userInteractionEnabled property to NO for that view.

    0 讨论(0)
提交回复
热议问题