I have a UIButton whose type is custom, and is represented by a png file, part of which is transparent.
Naturally, I want my button to activate the touchUpInside event if and only if the non transparent (=visible) part is tapped. But I get the event also when I touch the transparent part, which is unacceptable.
How can I make my button aware only of its visible part?