2

I am developing an app in which I need to open the camera in a landscape mode app in iPhone. I Googled but couldn't find any healthy solution.

UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;

picker.delegate = self;

[self presentViewController: picker animated: YES completion: nil];
Pang
  • 9,564
  • 146
  • 81
  • 122

0 Answers0