我正在旋转 UIImageview
和其中的 UIImage
。我想在旋转 UIImageview
后获取 UIImage
的方向。
最佳答案
您可以使用 myImage.imageOrientation
,这将为您提供 UIImageOrientation。
或
如果你使用了 UIImagePickerViewController
然后使用它的委托(delegate)方法
"imagePickerController:didFinishPickingMediaWithInfo:"
在此方法中,您还可以访问信息字典
NSlog(@"%d", [info objectForKey:@"Orientation"]);
关于iphone - iOS :Get UIImage Orientation inside a UIImageview with exif data?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17962080/