CB-11410: (ios) fix cameraPopoverHandle.setPosition

This closes #224
This commit is contained in:
Julio César 2016-07-31 17:13:57 +02:00
parent 4e439d85c3
commit 3f8c53f7f3

View File

@ -240,9 +240,13 @@ static NSString* toBase64(NSData* data) {
- (void)repositionPopover:(CDVInvokedUrlCommand*)command - (void)repositionPopover:(CDVInvokedUrlCommand*)command
{ {
NSDictionary* options = [command argumentAtIndex:0 withDefault:nil]; if (([[self pickerController] pickerPopoverController] != nil) && [[[self pickerController] pickerPopoverController] isPopoverVisible]) {
[[[self pickerController] pickerPopoverController] dismissPopoverAnimated:NO];
NSDictionary* options = [command argumentAtIndex:0 withDefault:nil];
[self displayPopover:options]; [self displayPopover:options];
}
} }
- (NSInteger)integerValueForKey:(NSDictionary*)dict key:(NSString*)key defaultValue:(NSInteger)defaultValue - (NSInteger)integerValueForKey:(NSDictionary*)dict key:(NSString*)key defaultValue:(NSInteger)defaultValue