简体   繁体   中英

Tap through transparent part of UIScrollView

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?

您可以尝试在滚动视图中覆盖hitTest:withEvent:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM