Skip to content
Permalink
Browse files
CB-13866(ios): fix Camera opens in portrait orientation on iphones
  • Loading branch information
jcesarmobile committed Apr 8, 2018
1 parent ec680de commit a07323b94faf46ca6f9aae08213aaac614218b34
Showing 1 changed file with 2 additions and 2 deletions.
@@ -158,7 +158,7 @@ - (void)captureImage:(CDVInvokedUrlCommand*)command
}*/
// CDVImagePicker specific property
pickerController.callbackId = callbackId;

pickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
[self.viewController presentViewController:pickerController animated:YES completion:nil];
}
}
@@ -272,7 +272,7 @@ - (void)captureVideo:(CDVInvokedUrlCommand*)command
}
// CDVImagePicker specific property
pickerController.callbackId = callbackId;

pickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
[self.viewController presentViewController:pickerController animated:YES completion:nil];
}
}

0 comments on commit a07323b

Please sign in to comment.