Marino Faggiana 6 年之前
父節點
當前提交
31c57bb724
共有 1 個文件被更改,包括 5 次插入10 次删除
  1. 5 10
      iOSClient/Main/CCMain.m

+ 5 - 10
iOSClient/Main/CCMain.m

@@ -37,7 +37,7 @@
 #import "NCNetworkingEndToEnd.h"
 #import "PKDownloadButton.h"
 
-@interface CCMain () <CCActionsDeleteDelegate, CCActionsRenameDelegate, CCActionsSearchDelegate, CCActionsDownloadThumbnailDelegate, CCActionsSettingFavoriteDelegate, UITextViewDelegate, createFormUploadAssetsDelegate, MGSwipeTableCellDelegate, CCLoginDelegate, CCLoginDelegateWeb, PKDownloadButtonDelegate>
+@interface CCMain () <CCActionsDeleteDelegate, CCActionsRenameDelegate, CCActionsSearchDelegate, CCActionsDownloadThumbnailDelegate, CCActionsSettingFavoriteDelegate, UITextViewDelegate, createFormUploadAssetsDelegate, MGSwipeTableCellDelegate, CCLoginDelegate, CCLoginDelegateWeb>
 {
     AppDelegate *appDelegate;
     
@@ -2172,11 +2172,6 @@
     }
 }
 
-- (void)downloadButtonTapped:(PKDownloadButton *)downloadButton currentState:(PKDownloadButtonState)state
-{
-    NSLog(@"s");
-}
-
 - (void)cancelTaskButton:(id)sender withEvent:(UIEvent *)event
 {
     UITouch *touch = [[event allTouches] anyObject];
@@ -4683,11 +4678,11 @@
         }
         
         // gesture Transfer
-//        [cell.cancelTaskButton addTarget:self action:@selector(cancelTaskButton:withEvent:) forControlEvents:UIControlEventTouchUpInside];
+        [cell.transferButton.stopButton addTarget:self action:@selector(cancelTaskButton:withEvent:) forControlEvents:UIControlEventTouchUpInside];
         
-        UILongPressGestureRecognizer *cancelLongGesture = [UILongPressGestureRecognizer new];
-        [cancelLongGesture addTarget:self action:@selector(cancelAllTask:)];
-//        [cell.cancelTaskButton addGestureRecognizer:cancelLongGesture];
+        UILongPressGestureRecognizer *stopLongGesture = [UILongPressGestureRecognizer new];
+        [stopLongGesture addTarget:self action:@selector(cancelAllTask:)];
+        [cell.transferButton.stopButton addGestureRecognizer:stopLongGesture];
         
         return cell;
     }