0

I am using image picker in my application.

I want to load the image only in landscape mode.

if it is in portrait mode then how to covert it into landscape mode...?

sajwan
  • 333
  • 3
  • 14

2 Answers2

1

Maybe,

UIImagePickerController in Landscape

thread can give you answer.

Community
  • 1
  • 1
Wonil
  • 6,364
  • 2
  • 37
  • 55
0

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)
Maninderjit Singh
  • 1,419
  • 1
  • 13
  • 23