第一种,使用代码 + (UIImage *)resizableWithName:(NSString *)imageName{ UIImage *image = [UIImage imageNamed:imageName]; /**