Open Source: Category For Easy Embedding Of PDF Images In iOS Apps For Scalable Images

Creating images for the different iOS device screen sizes can be a tedious task.  The great thing  about vector images is that they can be scaled to any size and still maintain quality.

This is where this excellent category for embedding PDF images comes in – you can use a tool such as Photoshop, and export vector images.

The category adds imageWithPDFNamed constructors to the UIImage class allowing you to easily create a UIImage from a PDF image.

The category is from Nigel Timothy Barber and you can find it on Github here with an example.

Matt Gemmell wrote a nice writeup on how to export your images for use with the category that you can check out here.

Very useful for those buttons and icons you don’t want to be bothered with creating different sized images for.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Leave a Reply

Your email address will not be published. Required fields are marked *