图片加载方式

有缓存

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

无缓存

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

UIImage *image = [UIImage imageWithContentsOfFile:path];

原文地址:https://www.cnblogs.com/qingpeng/p/3749051.html