SDWebImage获取网络图片大小
2015-10-29 00:00
661 查看
UIImageView *v1 = [[UIImageView alloc]init];
[v1 sd_setImageWithURL:[NSURL URLWithString:[[statusArray objectAtIndex:i]objectForKey:@"image"]] placeholderImage:nil
options:(SDWebImageRetryFailed) completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
v1.frame = CGRectMake(0, 0, image.size.width, image.size.height);
[arre addObject:[NSString stringWithFormat:@"%f",v1.frame.size.height]];
[tabView reloadData];
}];
[v1 sd_setImageWithURL:[NSURL URLWithString:[[statusArray objectAtIndex:i]objectForKey:@"image"]] placeholderImage:nil
options:(SDWebImageRetryFailed) completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
v1.frame = CGRectMake(0, 0, image.size.width, image.size.height);
[arre addObject:[NSString stringWithFormat:@"%f",v1.frame.size.height]];
[tabView reloadData];
}];
相关文章推荐
- HttpServletRequestWrapper作用
- RTP与RTCP协议介绍
- HTTP报文内的HTTP信息之编码提升传输速率
- Java:网络编程之应用实例
- 关于JS中ajax的XMLHttpRequest对象的使用
- httpd+tomcat(3) -- mod_jk
- Java:网络编程之登陆服务器
- HTTP基本认证和摘要认证
- httpd+tomcat(2) -- proxy_ajp_module
- httpd+tomcat(1) -- proxy_http_module
- Java:网络编程值TCP的使用
- Java:网络编程之UDP的使用
- http://czpae86.iteye.com/blog/2174125
- Java:网络编程之IP、URL
- 网络下的数据传输之XML数据的解析
- Xcode7网络请求编译不通过的解决方案
- Java——网络编程(二)
- HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容。
- okhttp 配置头部信息注意事项
- Java——网络编程(一)