Marino Faggiana 6 ani în urmă
părinte
comite
fe86e1e592

+ 2 - 2
iOSClient/Favorites/CCFavorites.m

@@ -394,7 +394,7 @@
     
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_cancel_", nil) style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) { }]];
     
-    alertController.popoverPresentationController.sourceView = self.view;
+    alertController.popoverPresentationController.sourceView = self.tableView;
     alertController.popoverPresentationController.sourceRect = [self.tableView rectForRowAtIndexPath:indexPath];
     
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
@@ -467,7 +467,7 @@
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_cancel_", nil) style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
     }]];
     
-    alertController.popoverPresentationController.sourceView = self.view;
+    alertController.popoverPresentationController.sourceView = self.tableView;
     alertController.popoverPresentationController.sourceRect = [self.tableView rectForRowAtIndexPath:indexPath];
     
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

+ 2 - 4
iOSClient/Main/CCMain.m

@@ -2149,7 +2149,7 @@
     
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_cancel_", nil) style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) { }]];
     
-    alertController.popoverPresentationController.sourceView = self.view;
+    alertController.popoverPresentationController.sourceView = self.tableView;
     alertController.popoverPresentationController.sourceRect = [self.tableView rectForRowAtIndexPath:indexPath];
     
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
@@ -3455,7 +3455,6 @@
    _metadata = [[NCMainCommon sharedInstance] getMetadataFromSectionDataSourceIndexPath:indexPath sectionDataSource:sectionDataSource];
     
     if (direction == MGSwipeDirectionRightToLeft) {
-        
         [self actionDelete:indexPath];
     }
     
@@ -3502,10 +3501,9 @@
     }
     
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_cancel_", nil) style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
-        [alertController dismissViewControllerAnimated:YES completion:nil];
     }]];
     
-    alertController.popoverPresentationController.sourceView = self.view;
+    alertController.popoverPresentationController.sourceView = self.tableView;
     alertController.popoverPresentationController.sourceRect = [self.tableView rectForRowAtIndexPath:indexPath];
     
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

+ 1 - 1
iOSClient/Transfers/CCTransfers.m

@@ -194,7 +194,7 @@
     
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_cancel_", nil) style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) { }]];
     
-    alertController.popoverPresentationController.sourceView = self.view;
+    alertController.popoverPresentationController.sourceView = self.tableView;
     alertController.popoverPresentationController.sourceRect = [self.tableView rectForRowAtIndexPath:indexPath];
     
     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)