How would you detect touches only on non-transparent pixels of a UIImageView, efficiently?
UIImageView
Consider an image like the one below, displayed with UI
UI
On github, you can find a project by Ole Begemann which extends UIButton so that it only detects touches where the button's image is not transparent.
UIButton
Since UIButton is a subclass of UIView, adapting it to UIImageView should be straightforward.
UIView
Hope this helps.