Cocoa in the Shell

by Nyx0uf

New category for NYXImagesUtilities : Reflection

Jun 03, 2011

Matthias Tretter wrote a new category for NYXImagesUtilities, based on the code of Peter Steinberger to create a reflection of an UIImage.

Like the previous categories it's very easy to use, this category is composed of a single method which takes 3 parameters :

• The height of the resulting image
• The lowest alpha value
• The highest alpha value

UIImage* reflected = [myImage reflectedImageWithHeight:myImage.size.height fromAlpha:0.0f toAlpha:0.5f];

UIImage reflection

You can grab the code on my github repo, and you're welcome to contribute too !