iOS:Base64 image add scale
This commit is contained in:
parent
9a1a8be5ae
commit
357fbd8e66
@ -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];
|
||||||
|
Reference in New Issue
Block a user