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