mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user