Skip to content

Commit 0b42cf7

Browse files
committed
Fix the deprecated warning of example
1 parent a3933dc commit 0b42cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Example/SDWebImagePDFCoder/SDViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ - (void)viewDidLoad
4646
NSAssert(pdfData.length > 0, @"PDF Data export failed");
4747
}
4848
}];
49-
[imageView2 sd_setImageWithURL:pdfURL2 placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextPDFImageSize : @(imageView2.bounds.size)} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
49+
[imageView2 sd_setImageWithURL:pdfURL2 placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextImageThumbnailPixelSize : @(imageView2.bounds.size)} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
5050
if (image) {
5151
NSLog(@"PDF load animation success");
5252
[UIView animateWithDuration:2 animations:^{

0 commit comments

Comments
 (0)