macdonst closed pull request #312: CB-13854(ios): fix Camera opens in portrait orientation on iphones URL: https://github.com/apache/cordova-plugin-camera/pull/312
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index 37b4ec84..c71de054 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -206,6 +206,7 @@ - (void)takePicture:(CDVInvokedUrlCommand*)command [weakSelf displayPopover:pictureOptions.popoverOptions]; weakSelf.hasPendingOperation = NO; } else { + cameraPicker.modalPresentationStyle = UIModalPresentationCurrentContext; [weakSelf.viewController presentViewController:cameraPicker animated:YES completion:^{ weakSelf.hasPendingOperation = NO; }]; ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org