简体   繁体   English

点击UIScrollView的透明部分

[英]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:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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