Marino Faggiana 6 年之前
父節點
當前提交
73fbfd83d2
共有 4 個文件被更改,包括 4 次插入21 次删除
  1. 0 1
      iOSClient/Favorites/CCFavorites.m
  2. 0 6
      iOSClient/Main/CCCellMain.h
  3. 0 13
      iOSClient/Main/CCCellMain.m
  4. 4 1
      iOSClient/Main/CCMain.m

+ 0 - 1
iOSClient/Favorites/CCFavorites.m

@@ -551,7 +551,6 @@
     
     
     // variable base
     // variable base
     cell.delegate = self;
     cell.delegate = self;
-    cell.indexPath = indexPath;
     
     
     // separator
     // separator
     cell.separatorInset = UIEdgeInsetsMake(0.f, 60.f, 0.f, 0.f);
     cell.separatorInset = UIEdgeInsetsMake(0.f, 60.f, 0.f, 0.f);

+ 0 - 6
iOSClient/Main/CCCellMain.h

@@ -38,10 +38,4 @@
 
 
 @property(nonatomic, strong) UIImage *imageTitleSegue;
 @property(nonatomic, strong) UIImage *imageTitleSegue;
 
 
-//Last position of the scroll of the swipe
-@property (nonatomic, assign) CGFloat lastContentOffset;
-
-//Index path of the cell swipe gesture ocured
-@property (nonatomic, strong) NSIndexPath *indexPath;
-
 @end
 @end

+ 0 - 13
iOSClient/Main/CCCellMain.m

@@ -43,17 +43,4 @@
     self.contentView.preservesSuperviewLayoutMargins = NO;
     self.contentView.preservesSuperviewLayoutMargins = NO;
 }
 }
 
 
-///-----------------------------------
-/// @name scrollViewWillBeginDecelerating
-///-----------------------------------
-
-/**
- * Method to initialize the position where we make the swipe in order to detect the direction
- *
- * @param UIScrollView -> scrollView
- */
-- (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView {
-    _lastContentOffset = scrollView.contentOffset.x;
-}
-
 @end
 @end

+ 4 - 1
iOSClient/Main/CCMain.m

@@ -4429,7 +4429,6 @@
         cell.tintColor = [NCBrandColor sharedInstance].brandElement;
         cell.tintColor = [NCBrandColor sharedInstance].brandElement;
                 
                 
         cell.delegate = self;
         cell.delegate = self;
-        cell.indexPath = indexPath;
         
         
         cell.labelTitle.textColor = [UIColor blackColor];
         cell.labelTitle.textColor = [UIColor blackColor];
         cell.labelTitle.text = metadata.fileNameView;
         cell.labelTitle.text = metadata.fileNameView;
@@ -4685,6 +4684,10 @@
             }
             }
         }
         }
         
         
+        // Progress
+        float progress = [[appDelegate.listProgressMetadata objectForKey:metadata.fileID] floatValue];
+        cell.transferButton.progress = progress;
+        
         // gesture Transfer
         // gesture Transfer
         [cell.transferButton.stopButton addTarget:self action:@selector(cancelTaskButton:withEvent:) forControlEvents:UIControlEventTouchUpInside];
         [cell.transferButton.stopButton addTarget:self action:@selector(cancelTaskButton:withEvent:) forControlEvents:UIControlEventTouchUpInside];