With the different iOS screen sizes now available adjusting your UIImage’s for all the different display sizes can be a major hassle.
Fortunately Matt Gemmell has created some super-handy categories to do this for us.
These categories extend UIImage and allow you to easily resize your images by scaling or cropping, and even use the image’s metadata to make sure the image is shown with the proper orientation.
Also included is a UIImage tint category which allows you tint any UIImage by filling in the transparent pixels with a specific color. This is extremely useful if you are creating something like a menu so you can easily tint an image to show that it is selected.
This can all be download in the MGImageUtilities on Github:
A full demo app is included so you can see all the goodies in action.
You can read Matt’s full writeup on MGImageUtilities here:
MGImageUtilities Writeup By Matt Gemmell
Btw, if you’ve created an open source library and would like some exposure (along with a backlink) submit information about it here and I’ll be glad to check it out, and put it in front of the 2,000+ daily visitors to this site.