Added support for loading resolution independent images ([UIImage imageWithContentsOfFile:] is broken) via UIImage

category and updated NSBundle additions to leverage the support.
This commit is contained in:
Blake Watters
2012-02-24 18:03:23 -05:00
parent 5ae94287e9
commit eeecff7bd0
5 changed files with 93 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
#import "NSBundle+RKAdditions.h"
#import "NSString+RestKit.h"
#import "UIImage+RKAdditions.h"
#import "RKLog.h"
#import "RKParser.h"
#import "RKParserRegistry.h"
@@ -73,7 +74,7 @@
return nil;
}
return [UIImage imageWithContentsOfFile:resourcePath];
return [UIImage imageWithContentsOfResolutionIndependentFile:resourcePath];
}
#endif