pre { /*控制代码不换行*/ white-space: pre; word-wrap: normal; }

IOS异步加载图片框架

过发现一个好东东, SDWebImage, 这个实在是太方便了
主页: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/...."]];
posted @ 2012-05-24 13:38  monkey's  阅读(823)  评论(0编辑  收藏  举报