根据图片名称加载
UIImage* image = [UIImage imageNamed:@"banner"];
根据url 加载
NSURL *url =[NSURL URLWithString:[CommonTool getImageUrlString:self.imageNameA[i]]];
UIImage* image = [UIImage imageWithData:[NSData dataWithContentsOfURL:url]];
UIImageView 直接使用sdwebImage 加载url
@property (weak, nonatomic) IBOutlet UIImageView *imageV;
#import <UIImageView+WebCache.h>
[self.imageV sd_setImageWithURL:[NSURL URLWithString:[CommonTool getImageUrlString:model.imageUrl]]];