图片加载方式

有缓存

UIImage *image = [UIImage imageNamed:@"a.png"];

无缓存

NSString *path = [[NSBundle mainBundle] pathForResoure:@"a.png" ofType:nil];

UIImage *image = [UIImage imageWithContentsOfFile:path];

posted @ 2014-05-23 23:10  AppLiu  阅读(145)  评论(0编辑  收藏  举报