技术文章分类(180)

技术随笔(11)

SDWebImage使用——一个可管理远程图片加载的类库

1、下载SDWebImage:http://download.csdn.net/download/li841538513/6930393 或者 https://github.com/rs/SDWebImage

2、添加MapKit.framework   ImageIO.framework
 
3Please make sure the -ObjC flag is set as follow:
 
4、#import导入UIImageView+WebCache.h文件,然后
[imageView setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"] placeholderImage:[UIImage imageNamed:@"placeholder.png"
]];
posted @ 2014-02-17 18:52  坤哥MartinLi  阅读(405)  评论(0编辑  收藏  举报