Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在旋转 aUIImageview和UIImage它的内部。我想UIImage在旋转UIImageview.
UIImageview
UIImage
您可以使用myImage.imageOrientation,它将为您提供 UIImageOrientation。
myImage.imageOrientation
或者
如果你使用UIImagePickerViewController了,那么使用它的委托方法
UIImagePickerViewController
"imagePickerController:didFinishPickingMediaWithInfo:"
在此方法中,您还可以访问信息字典
NSlog(@"%d", [info objectForKey:@"Orientation"]);