Am developing an iPhone App. When the user taps a button, displaying a semi-transparent UIImageView on a page (i.e. covering the whole page). Now, since the UIImageView is semi-transparent, the buttons beneath it are seen. Clicking on the buttons (though the UIImageView is on top of it) is causing the button-click to be processed ; but I want to stop this. When the UIImageView is on th e top, only touching UIImageView (which calls a method) should work ; touching anything beneath it shouldn’t.
Am developing an iPhone App. When the user taps a button, displaying a semi-transparent
Share
You have following alternatives :
First make sure that UIImageView is on top of button. Bring if front by using bringSubviewToFront