0

My application is in Landscape. I am using UIImagePickerController to record a video. But whenever we call the UIImagePickerController, it is coming in portrait mode. I decided to rotate the layout of imagep pickercontroller by usingUIImagePickerController` Subclass.

Through this, image picker controller layout is coming in Landscape. But it is working in iPad only. I tested in iPhone. But it is not working. Layout is not changing exactly in iPad.

Is it possible to show UIImagePickerController in iPhone in landscape mode?

First picture is, I tested in iPad. Second one is, I tested in iPhone.

  • This question was already answered. http://stackoverflow.com/questions/2083672/uiimagepickercontroller-in-landscape http://stackoverflow.com/questions/14618546/force-landscape-orientation-in-uiimagepickercontroller http://stackoverflow.com/questions/5737632/open-uiimagepickercontroller-in-landscape-mode – Vojtech Vrbka Dec 23 '13 at 12:37

1 Answers1

0

As per UIImagePickerController class documentation it is not possible:

Important: The UIImagePickerController class supports portrait mode only. This class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified, with one exception. You can assign a custom view to the cameraOverlayView property and use that view to present additional information or manage the interactions between the camera interface and your code.

But yes you can customize this controller to work as per your requirement. I think if you change/replace cameraOverlayView(like click button and all) to landscape it'll automatically look like in landscape mode.

OGHaza
  • 4,795
  • 7
  • 23
  • 29
Suryakant Sharma
  • 3,852
  • 1
  • 25
  • 47