【发布时间】:2014-05-22 05:35:49
【问题描述】:
拍照:
我正在使用此问题中的代码拍摄图像: Scaling UIImage with a UIIImagePicker's CGAffineTransform and Saving to Parse SDK
将 UIImage 转换为 NSData 并保存
_imageData = UIImageJPEGRepresentation(_image, .1);
PFFile *imageFile = [PFFile fileWithName:@"image.png" data:_imageData];
newMessage[@"image"] = imageFile;
问题:
当我重新下载数据时,UIImage 似乎被压扁了。当我查看数据库中的图像时,似乎高度和宽度颠倒了。不知道为什么会这样……
【问题讨论】:
-
你有什么问题?
-
@InderKumarRathore 已编辑
标签: ios objective-c uiimage