ios - sdwebimage

查看:586
本文介绍了ios - sdwebimage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

[_bubbleView.videoImageView sd_setImageWithURL:[NSURL URLWithString:_model.fileURLPath] placeholderImage:nil options:32 progress:^(NSInteger receivedSize, NSInteger expectedSize) {

                        PYLog(@"百分比%ld",expectedSize);
                    } completed:^(UIImage *image, NSError *error, EMSDImageCacheType cacheType, NSURL *imageURL) {
                        
                        PYLog(@"完成=%@",error);
                        _bubbleView.videoImageView.image = image;
                    }]; 

Domain=SDWebImageErrorDomain Code=0 "Downloaded image has 0 pixels" UserInfo={NSLocalizedDescription=Downloaded image has 0 pixels}
报这个错误是什么

解决方案

通过URL下载回来是一个无法转化为图片的数据.

SDWebImage源码

这篇关于ios - sdwebimage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆