通过UIImageView触摸?
我有一个透明的 UIImageView,后面有一个按钮。我怎样才能“穿过”它并按下它下面的按钮?
谢谢
I have a transparent UIImageView with a button behind it. How can I touch "through" it and press the button underneath it?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 UIImageView.userInteractionEnabled = NO;
可以防止它接收触摸,并且所有触摸都将通过它。
Use
UIImageView.userInteractionEnabled = NO;
That prevents it from receiving touches and all the touches will go through it.