网络图片赋值SDWebImageDownloader
2016-04-09 10:18
387 查看
[[SDWebImageDownloader
sharedDownloader]
downloadImageWithURL:[NSURL
URLWithString:[NSString
stringWithFormat:@"%@%@",
AppPic,model.pic_url]]
options:0
progress:^(NSInteger receivedSize,
NSInteger expectedSize) {
} completed:^(UIImage *image,
NSData *data, NSError *error,
BOOL finished) {
imageView.image = image;
}];
sharedDownloader]
downloadImageWithURL:[NSURL
URLWithString:[NSString
stringWithFormat:@"%@%@",
AppPic,model.pic_url]]
options:0
progress:^(NSInteger receivedSize,
NSInteger expectedSize) {
} completed:^(UIImage *image,
NSData *data, NSError *error,
BOOL finished) {
imageView.image = image;
}];
相关文章推荐
- iOS开发之网络编程:常用网络内部类(NSURLSession)
- linux下网络死掉了肿么办?(Networking Disabled)
- 浏览器首页被劫持为http://hao.169x.cn/的修复方法
- 读取网络图片和本地sd卡图片文件 解析为空 SkImageDecoder::Factory returned null
- 【USACO题库】3.1.1 Agri-Net最短网络
- iOS网络状态监测之Reachability的使用
- 使用ssh开发rest web服务支持http etag header的教程详解
- iOS开发之网络编程:XML,JSon解析
- iOS开发之网络编程:同步,异步请求差异及用法
- https://linux.cn/article-4790-1.html
- 网络流DINIC模板
- http协议概述
- IBM SPSS Modeler 【4】 神经网络模型的测试验证
- IBM SPSS Modeler 【3】 神经网络的生成
- 软考六:网络与多媒体基础知识
- [Unity热更新]tolua# & LuaFramework(六):网络通信
- 最简单的基于Flash的流媒体示例:网页播放器(HTTP,RTMP,HLS)
- 网络编程学习——套接字编程(一)
- HttpClient使用详解
- 在内部网络为edX配置视频服务