问题
I have a transparent UIImageView with a button behind it. How can I touch "through" it and press the button underneath it?
Thanks
回答1:
Use UIImageView.userInteractionEnabled = NO;
That prevents it from receiving touches and all the touches will go through it.
来源:https://stackoverflow.com/questions/7060410/touch-through-uiimageview