gpt4 book ai didi

iphone - 通过UIImageView触摸?

转载 作者:行者123 更新时间:2023-12-03 18:31:49 24 4
gpt4 key购买 nike

我有一个透明的 UIImageView,后面有一个按钮。我怎样才能“穿过”它并按下它下面的按钮?

谢谢

最佳答案

使用UIImageView.userInteractionEnabled = NO;

这可以防止它接收触摸,并且所有触摸都会通过它。

关于iphone - 通过UIImageView触摸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7060410/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com