iOSDev
iOSDev

Reputation: 1028

Touch through UIImageView?

I have a transparent UIImageView with a button behind it. How can I touch "through" it and press the button underneath it?

Thanks

Upvotes: 11

Views: 2446

Answers (1)

Daniel G. Wilson
Daniel G. Wilson

Reputation: 15055

Use UIImageView.userInteractionEnabled = NO;

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

Upvotes: 25

Related Questions