您的位置:首页 > 理论基础 > 计算机网络

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];

}];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: