缩放UIImage

self.imageView.image =[UIImage_SmartimageNamedSmart:_data.iconName];

UIGraphicsBeginImageContext(CGSizeMake(64, 64));

[self.imageView.imagedrawInRect:CGRectMake(0, 0, 64, 64)];

self.imageView.image = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

 

原文地址:https://www.cnblogs.com/in1ts/p/2933425.html