From 7c90555bd4bfbbdfe23f357f130eb1bbb7e4fce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar?= Date: Sun, 11 Feb 2018 13:08:40 +0100 Subject: [PATCH] CB-13854(ios): fix Camera opens in portrait orientation on iphones --- src/ios/CDVCamera.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index 37b4ec8..c71de05 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -206,6 +206,7 @@ static NSString* toBase64(NSData* data) { [weakSelf displayPopover:pictureOptions.popoverOptions]; weakSelf.hasPendingOperation = NO; } else { + cameraPicker.modalPresentationStyle = UIModalPresentationCurrentContext; [weakSelf.viewController presentViewController:cameraPicker animated:YES completion:^{ weakSelf.hasPendingOperation = NO; }];