Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

UIImage category, which simplifies loading of non-bundled images using [UIImage imageNamed:]

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 LICENSE.TXT
Octocat-spinner-32 README.textile
Octocat-spinner-32 UIImage+ASImage.h
Octocat-spinner-32 UIImage+ASImage.m
README.textile

UIImage+ASImage

UIImage category, which simplifies loading of non-bundled images using [UIImage imageNamed:]

Usage

#import "UIImage+ASImage.h"

...


// To load a saved image from the "Caches" directory
UIImage *myCachedImage = [UIImage as_cachedImageNamed:@"image.png"];

// To load a saved image from the "Documents" directory
UIImage *myDocumentsImage = [UIImage as_documentsImageNamed:@"another_image.png"];


// Subsequent loading of the same images will use UIImage's system caching, which is nice... :)
UIImage *reallyCachedImage = [UIImage as_cachedImageNamed:@"image.png"];

Something went wrong with that request. Please try again.