aboy

UIImage、NSData変換

・UIImageからNSData
NSData* data = UIImagePNGRepresentation(image);

NSData *imageList1 = UIImageJPEGRepresentation([UIImage imageNamed:@"1.jpg"], 1.0);

・NSDataからUIImage
UIImage* image = [UIImage imageWithData:data];