Pārlūkot izejas kodu

fix target selector on swipe right gesture on the tableview cell

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
(cherry picked from commit b9c80ed69452a82006b2f4d9456d369e4bae605a)
Pierre SAGASPE 10 gadi atpakaļ
vecāks
revīzija
14a344e20d
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      Sources/VLCPlaylistViewController.m

+ 2 - 2
Sources/VLCPlaylistViewController.m

@@ -704,8 +704,8 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
     else {
         [self setEditing:YES animated:YES];
 
-        NSIndexPath *path = [_tableView indexPathForRowAtPoint:[recognizer locationInView:self.view]];
-        [_tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:path.row inSection:path.section]
+        NSIndexPath *path = [self.tableView indexPathForRowAtPoint:[recognizer locationInView:self.tableView]];
+        [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:path.row inSection:path.section]
                                 animated:YES
                           scrollPosition:UITableViewScrollPositionNone];
     }