Merge pull request #93 from jcesarmobile/CB-13866
CB-13866(ios): fix Camera opens in portrait orientation on iphones
diff --git a/src/ios/CDVCapture.m b/src/ios/CDVCapture.m
index 7ab0832..f2fe258 100644
--- a/src/ios/CDVCapture.m
+++ b/src/ios/CDVCapture.m
@@ -158,7 +158,7 @@
}*/
// CDVImagePicker specific property
pickerController.callbackId = callbackId;
-
+ pickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
[self.viewController presentViewController:pickerController animated:YES completion:nil];
}
}
@@ -272,7 +272,7 @@
}
// CDVImagePicker specific property
pickerController.callbackId = callbackId;
-
+ pickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
[self.viewController presentViewController:pickerController animated:YES completion:nil];
}
}