SDWebImage使用——一个可管理远程图片加载的类库
1、下载SDWebImage:http://download.csdn.net/download/li841538513/6930393 或者 https://github.com/rs/SDWebImage
2、添加MapKit.framework ImageIO.framework
3、Please 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"
]];