Forum Xamarin.iOS

Detecting if a tap was on a transparent pixel of an UIImageView

DaveVronayDaveVronay USMember

I have a playfield of UIImageViews that have a transparent PNG in them. I want them to ignore tap events that happen on transparent pixels. I've tried several code fragments in various forums but cannot get it to work. Has anyone done this successfully?


  • MagnusWallonMagnusWallon USMember ✭✭✭

    did you find a solution to this?


  • TedRogersTedRogers USMember ✭✭✭✭

    You should be able to add a tap gesture recognizer to the UIImageView.

Sign In or Register to comment.