Disabling touch on transparent UIView
I have UIImageViews and UIViews (with image), and both have transparent backgrounds that surround the image.
What I want to do, is to identify when a touch is done on the transparent part of the image, so that it doesn't do anything (no events occur).
Right now, anywhere you touch inside the view's rectangle will work as a UITouch, but I just want the user to have to touch on the real image not just touch near the image.
How do I go about disabling touch on the transparent part?
I have little code since I've been searching if this is a checkmark or if I have to code and identify the pixels.
|