NSData与UIImage之间的转换
NSData *imageData = [NSData dataWithContentsOfFile: imagePath];
UIImage *aimage = [UIImage imageWithData: imageData];
//UIImage-> NSData
NSData *imageData = UIImagePNGRepresentation(aimae);
NSData与UIImage之间的转换
NSData *imageData = [NSData dataWithContentsOfFile: imagePath];
UIImage *aimage = [UIImage imageWithData: imageData];
//UIImage-> NSData
NSData *imageData = UIImagePNGRepresentation(aimae);