ios 异步加载图片的框架(SDWebImage)

来源:互联网 发布:c语言api程序设计 编辑:程序博客网 时间:2024/04/29 05:48

网址:https://github.com/rs/SDWebImage
1.下载下来放到project里面
2. 添加:MapKit.framework
3. #import “UIImageView+WebCache.h”
4. 使用:

UIImageView *asyncImage = [[UIImageView alloc] init];
[asyncImage setImageWithURL:[NSURL URLWithString:@"www.istar.name/...."]];
原创粉丝点击