mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-18 19:22:51 +08:00
CB-13854(ios): fix Camera opens in portrait orientation on iphones
This commit is contained in:
parent
e25aed97c5
commit
7c90555bd4
@ -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;
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user