开发者

Touch through UIImageView?

开发者 https://www.devze.com 2023-03-28 06:10 出处:网络
I have a transparent UIImageView with a button behind it. How can I touch \"through\" it开发者_如何学Go and press the button underneath it?

I have a transparent UIImageView with a button behind it. How can I touch "through" it开发者_如何学Go and press the button underneath it?

Thanks


Use UIImageView.userInteractionEnabled = NO;

That prevents it from receiving touches and all the touches will go through it.

0

精彩评论

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