当点图片浏览的时候,进度条一直转,图片加载不出来。
解决办法:
- (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;
}