Explorar el Código

VLCOpenInActivity: Fix open in activity for iPads

Soomin Lee hace 5 años
padre
commit
5b542dc3dd
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      Sources/VLCOpenInActivity.m

+ 3 - 0
Sources/VLCOpenInActivity.m

@@ -169,6 +169,9 @@
                                                          handler:^(UIAlertAction * _Nonnull action) {
                                                              [self activityDidFinish:NO];
                                                          }];
+
+    actionController.popoverPresentationController.sourceView = self.presentingViewController.view;
+
     [actionController addAction:cancelAction];
     [self.presentingViewController presentViewController:actionController animated:YES completion:nil];
 }