3
0
mirror of https://github.com/apache/cordova-plugin-camera.git synced 2025-03-01 03:12:52 +08:00

CB-11410: (ios) fix cameraPopoverHandle.setPosition

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

View File

@ -240,10 +240,14 @@ 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
{ {