mirror of
https://github.com/DmcSDK/cordova-plugin-mediaPicker
synced 2026-04-14 00:03:04 +08:00
Merge pull request #92 from ryaa/master
Implemented fixes for modal dismissal issue and maxSelectSize option not working
This commit is contained in:
@@ -30,7 +30,15 @@
|
||||
}@catch (NSException *exception) {
|
||||
NSLog(@"Exception: %@", exception);
|
||||
}
|
||||
@try{
|
||||
dmc.maxSelectSize=[[options objectForKey:@"maxSelectSize"]integerValue];
|
||||
}@catch (NSException *exception) {
|
||||
NSLog(@"Exception: %@", exception);
|
||||
}
|
||||
dmc.modalPresentationStyle = 0;
|
||||
if (@available(iOS 13.0, *)) {
|
||||
dmc.modalInPresentation = true;
|
||||
}
|
||||
dmc._delegate=self;
|
||||
[self.viewController presentViewController:[[UINavigationController alloc]initWithRootViewController:dmc] animated:YES completion:nil];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user