UIImageView加载图片的两种方式

加载图片的两种方式:

1.有缓存  UIImage *img = [UIImage imageWithNamed:@"11"];

2.无缓存  NSString *path = [[NSBundle mainBundle] pathForResource:@"11" ofType:nil];

    UIImage *img = [[UIImage alloc] initWithContentsOfFile:path];

原文地址:https://www.cnblogs.com/10-19-92/p/4914948.html