Skip to content
Permalink
Browse files
Merge pull request #93 from jcesarmobile/CB-13866
CB-13866(ios): fix Camera opens in portrait orientation on iphones
  • Loading branch information
jcesarmobile committed Apr 8, 2018
2 parents ec680de + a07323b commit 9b360841266567f262c5da73b4cef45805f600f8
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 9b36084

Please sign in to comment.