Declared in UIImage+RKAdditions.h
UIImage+RKAdditions.m

Overview

Provides useful extensions to the UIImage interface.

Resolution indepdence helpers borrowed from: http://atastypixel.com/blog/uiimage-resolution-independence-and-the-iphone-4s-retina-display/

Tasks

Class Methods

imageWithContentsOfResolutionIndependentFile:

Creates and returns an image object by loading the image data from the file at the specified path appropriate for the resolution of the device.

+ (UIImage *)imageWithContentsOfResolutionIndependentFile:(NSString *)path

Parameters

path

The full or partial path to the file, possibly including an @2x retina image.

Return Value

A new image object for the specified file, or an image for the @2x version of the specified file, or nil if the method could not initialize the image from the specified file.

Declared In

UIImage+RKAdditions.h

Instance Methods

initWithContentsOfResolutionIndependentFile:

Initializes an image object by loading the image data from the file at the specified path appropriate for the resolution of the device.

- (id)initWithContentsOfResolutionIndependentFile:(NSString *)path

Parameters

path

The full or partial path to the file, possibly including an @2x retina image.

Return Value

The initialized image object for the specified file, or for the @2x version of the specified file, or nil if the method could not initialize the image from the specified file.

Declared In

UIImage+RKAdditions.h