iOS:Base64 image add scale

This commit is contained in:
pengfei.zhou 2020-04-17 12:06:00 +08:00 committed by osborn
parent 9a1a8be5ae
commit 357fbd8e66

View File

@ -166,7 +166,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id
} }
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:base64 NSData *imageData = [[NSData alloc] initWithBase64EncodedString:base64
options:NSDataBase64DecodingIgnoreUnknownCharacters]; options:NSDataBase64DecodingIgnoreUnknownCharacters];
YYImage *image = [YYImage imageWithData:imageData]; YYImage *image = [YYImage imageWithData:imageData scale:UIScreen.mainScreen.scale];
view.image = image; view.image = image;
} else if ([@"isBlur" isEqualToString:name]) { } else if ([@"isBlur" isEqualToString:name]) {
NSInteger value = [prop intValue]; NSInteger value = [prop intValue];