Created
August 31, 2012 15:18
-
-
Save calimarkus/3554413 to your computer and use it in GitHub Desktop.
UIImage Loading withouth caching, but as convinient as imageNamed:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation UIImage (NoCaching) | |
+ (UIImage*) make: (NSString*) filePath | |
{ | |
NSString* file = [[NSBundle mainBundle] pathForResource: [filePath lastPathComponent] ofType: nil | |
inDirectory: [filePath stringByDeletingLastPathComponent]]; | |
return [self imageWithContentsOfFile: file]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment