當點圖片瀏覽的時候,進度條一直轉,圖片加載不出來。
解決辦法:
- (UIImage *)imageForPhoto:(id<MWPhoto>)photo {
if (photo) {
// Get image or obtain in background
if ([photo underlyingImage]) {
return [photo underlyingImage];
} else {
[photo loadUnderlyingImageAndNotify];
//添加這行代碼,再次回調此方法
return [self imageForPhoto:photo];
}
}
return nil;
}