iphone - iOS :Get UIImage Orientation inside a UIImageview with exif data?

标签 iphone ios uiimageview uiimage exif

我正在旋转 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/

相关文章:

iphone - 如何在 mfmailcomposerview 中关闭键盘

objective-c - UIViewControllers 问题

ios - 移动带有 subview 的 UIView

iphone - 应用会加载默认屏幕,然后变黑或崩溃

iphone - 使用 Core Graphics/Cocoa,您可以从后台线程绘制位图上下文吗?

ios - 重新加载 View Controller 并以编程方式更改 UIImageView 约束

ios - 如何在ios中获取今天日期的开始和结束时间?

mysql - 如何将图像从 Drupal 字段加载到 UIImageView?

ios - 如何做放大和变换动画?

swift - iOS 13 UISplitView 问题