0
SDWebImageManager *manager = [SDWebImageManager sharedManager];
[manager downloadWithURL:imageURL
delegate:self
options:0
success:^(UIImage *image, BOOL cached) {
_newsimage.alpha = 0.0;
[UIView transitionWithView:_newsimage
duration:3.0
options:UIViewAnimationOptionTransitionCrossDissolve
animations:^{
[_newsimage setImage:image];
_newsimage.alpha = 1.0;
} completion:NULL];
}failure:nil];
我使用此代碼通過SDWebImage
庫下載圖像,我歌廳此錯誤SDWebImageManager問題
No visible @interface for 'SDWebImageManager' declares the selector 'downloadWithURL:delegate:options:success:failure:'
我已經在使用這個庫了!如果有任何建議,我明白這一點:) –
檢查我的更新答案。您可以使用代碼下載圖像。 – Nirmalsinh
此代碼完美謝謝:)我有另一個問題|我如何在佔位符中設置活動指示符而不是圖像?我正在使用一些代碼並且不能正常工作 –