소스 검색

iOS: Change editing verification method with swipe right event

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 년 전
부모
커밋
8002483095
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Sources/VLCLibraryViewController.m

+ 2 - 2
Sources/VLCLibraryViewController.m

@@ -832,9 +832,9 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
 #pragma mark - Gesture Action
 - (void)swipeRightOnTableViewCellGestureAction:(UIGestureRecognizer *)recognizer
 {
-    if ([[self.editButtonItem title] isEqualToString:NSLocalizedString(@"BUTTON_CANCEL", nil)])
+    if (self.tableView.isEditing) {
         [self setEditing:NO animated:YES];
-    else {
+    } else {
         [self setEditing:YES animated:YES];
 
         NSIndexPath *path = [self.tableView indexPathForRowAtPoint:[recognizer locationInView:self.tableView]];