CB-13854(ios): fix Camera opens in portrait orientation on iphones

This commit is contained in:
Julio César 2018-02-11 13:08:40 +01:00 committed by Simon MacDonald
parent e25aed97c5
commit 7c90555bd4

View File

@ -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;
}];