开发者

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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜