开发者

Tap through transparent part of UIScrollView

开发者 https://www.devze.com 2022-12-27 16:06 出处:网络
I have a scroll view with transparent background that covers most of the screen. It also covers some buttons that still need to be tap-able. How can I make sure that the scroll view doesn\'t respond t

I have a scroll view with transparent background that covers most of the screen. It also covers some buttons that still need to be tap-able. How can I make sure that the scroll view doesn't respond to touches in regions where the subview image 开发者_如何学运维is transparent?


You could try to override hitTest:withEvent: in your scroll view.

0

精彩评论

暂无评论...
验证码 换一张
取 消