| | |
| | | - (void)setYthImageWithURL:(NSString *)urlStr placeholderImage:(UIImage *)placeholder{ |
| | | if (urlStr.length>4) { |
| | | if ([[urlStr substringWithRange:NSMakeRange(0, 4)] isEqualToString:@"http"]) { |
| | | [self yy_setImageWithURL:[NSURL URLWithString:urlStr] placeholder:placeholder options:YYWebImageOptionProgressiveBlur|YYWebImageOptionSetImageWithFadeAnimation|YYWebImageOptionIgnoreAnimatedImage progress:^(NSInteger receivedSize, NSInteger expectedSize) { |
| | | [self yy_setImageWithURL:[NSURL URLWithString:urlStr] placeholder:placeholder options:YYWebImageOptionProgressiveBlur|YYWebImageOptionSetImageWithFadeAnimation progress:^(NSInteger receivedSize, NSInteger expectedSize) { |
| | | |
| | | } transform:^UIImage * _Nullable(UIImage * _Nonnull image, NSURL * _Nonnull url) { |
| | | return image; |
| | |
| | | |
| | | }]; |
| | | }else{ |
| | | [self yy_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",ImageUrl,urlStr]] placeholder:placeholder options:YYWebImageOptionProgressiveBlur|YYWebImageOptionSetImageWithFadeAnimation|YYWebImageOptionIgnoreAnimatedImage progress:^(NSInteger receivedSize, NSInteger expectedSize) { |
| | | [self yy_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",ImageUrl,urlStr]] placeholder:placeholder options:YYWebImageOptionProgressiveBlur|YYWebImageOptionSetImageWithFadeAnimation progress:^(NSInteger receivedSize, NSInteger expectedSize) { |
| | | |
| | | } transform:^UIImage * _Nullable(UIImage * _Nonnull image, NSURL * _Nonnull url) { |
| | | return image; |