How to get Image In Landscape mode
I am using image picker in my application.
I want to load the image only in landscape mode.
if it is in portrait mode th开发者_如何学Goen how to covert it into landscape mode...?
Maybe,
UIImagePickerController in Landscape
thread can give you answer.
In this case,I captured image in portrait mode and need to display it into landscape Right mode.
Use the Following code,
let lanscapeImage = UIImage(CGImage: capImage.CGImage, scale: 1.0, orientation: .Right)
精彩评论