0

UIImagePicker opening in Portraite mode while my app is in ladscape mode.

enter image description here

code for UIimage picker is

picker = [[UIImagePickerController alloc] init];

picker.delegate = self;
picker.allowsEditing = YES;

picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:picker animated:YES completion:nil];
Shaik Riyaz
  • 11,204
  • 7
  • 53
  • 70
Pravin
  • 44
  • 9
  • See this link, http://stackoverflow.com/questions/5737632/open-uiimagepickercontroller-in-landscape-mode – karthika Oct 21 '13 at 09:43
  • http://stackoverflow.com/questions/14618546/force-landscape-orientation-in-uiimagepickercontroller – karthika Oct 21 '13 at 09:44

1 Answers1

1

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.

Reference from Apple docs

Samkit Jain
  • 2,523
  • 16
  • 33