RMShapedImageView

Apache 2.0 License
Objective-C
iOS

1 image

Author

Description

A UIImageView subclass that ignores touches on transparent pixels, based on OBShapedButton by Ole Begemann.

RMShapedImageView does it magic by overriding pointInside:withEvent:. This method is called to determine if a touch is inside the view. In our case, we only want to return YES if the corresponding pixels are not transparent (alpha > 0).

Tags