Просмотр исходного кода

VLCOpenInActivity: Fix open in activity for iPads

Soomin Lee 5 лет назад
Родитель
Сommit
5b542dc3dd
1 измененных файлов с 3 добавлено и 0 удалено
  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];
 }