uiimage设置网络图片
2012-06-17 13:01
260 查看
id path = @"http://merrimusings.mu.nu/archives/images/groundhog2.jpg";
NSURL *url = [NSURL URLWithString:path];
NSData *data = [NSData dataWithContentsOfURL:url];
UIImage *img = [[UIImage alloc] initWithData:data cache:NO];
NSURL *url = [NSURL URLWithString:path];
NSData *data = [NSData dataWithContentsOfURL:url];
UIImage *img = [[UIImage alloc] initWithData:data cache:NO];
相关文章推荐
- 让UIImageView可以直接设置网络图片url,并且支持图片缓存
- iOS根据网络图片的size大小设置UIImageView的大小
- 根据网络图片的size大小设置UIImageView的大小
- ios 简单的设置图片等比例缩放请求的网络图片
- (网络摘抄)UIImage指定大小裁剪图片
- 控件之间的基本关系(动态图片、字体的设置)UILable、UIImageView
- iOS UIImageView显示网络图片的基础用法
- Android从网络获取图片并设置缓存
- UIImageView异步加载网络图片
- UIImageView异步加载网络图片
- 精简linux (二)背景图片的设置 网络功能的实现
- 解决 UIView 设置背景为UIImage图片变型问题[XXX setBackgroundColor:
- 【iOS】从网络下载图片,保存,并用 UIImageView 从保存中显示
- UIButton 设置为圆形,并且使用图片(UIImage)当做背景
- list适配器设置网络获取的图片
- iOS设置UIimage图片方向
- UIImageView异步加载网络图片
- ios通过图片的URL地址,从网络上获取图片(UIImage类型)
- Android开发中ImageLoder加载网络图片时将图片设置为ImageView背景的方法
- Android点滴---TextView,RadioButton 设置 HTML文本,加载网络图片