set as default the device's screen scale

This commit is contained in:
mythodeia 2015-07-15 10:43:29 +03:00
parent ae11cf7e43
commit dcde40fc01
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ inline UIImage *SDScaledImageForKey(NSString *key, UIImage *image) {
}
else {
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {
CGFloat scale = 1.0;
CGFloat scale = [UIScreen mainScreen].scale;
if (key.length >= 8) {
NSRange range = [key rangeOfString:@"@2x."];
if (range.location != NSNotFound) {