Merge pull request #1540 from futuretap/fix-1437
Fixed changed image size (#1437)
This commit is contained in:
commit
29c9c5d68a
|
@ -28,7 +28,7 @@ inline UIImage *SDScaledImageForKey(NSString *key, UIImage *image) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {
|
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {
|
||||||
CGFloat scale = [UIScreen mainScreen].scale;
|
CGFloat scale = 1;
|
||||||
if (key.length >= 8) {
|
if (key.length >= 8) {
|
||||||
NSRange range = [key rangeOfString:@"@2x."];
|
NSRange range = [key rangeOfString:@"@2x."];
|
||||||
if (range.location != NSNotFound) {
|
if (range.location != NSNotFound) {
|
||||||
|
|
Loading…
Reference in New Issue