Skip to content

Commit

Permalink
[iOS] add log when download image
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Apr 29, 2020
1 parent 35c1d17 commit 5fb1c16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,10 @@ - (void)updateImage
}
newURL = [choosedSrc copy];
if ([newURL length] == 0) {
WXLogWarning(@"Image Url is null");
return;
}
WXLogInfo(@"Will download image: %@", newURL);
WX_REWRITE_URL(choosedSrc, WXResourceTypeImage, self.weexInstance)
NSDictionary *userInfo = @{@"imageQuality":@(self.imageQuality), @"imageSharp":@(self.imageSharp), @"blurRadius":@(self.blurRadius), @"instanceId":[self _safeInstanceId], @"pageURL": self.weexInstance.scriptURL ?: @""};
[[self imageLoader] setImageViewWithURL:(UIImageView*)self.view url:[NSURL URLWithString:newURL] placeholderImage:nil options:userInfo progress:^(NSInteger receivedSize, NSInteger expectedSize) {
Expand Down

0 comments on commit 5fb1c16

Please sign in to comment.