@@ -551,7 +551,6 @@
// variable base
cell.delegate = self;
- cell.indexPath = indexPath;
// separator
cell.separatorInset = UIEdgeInsetsMake(0.f, 60.f, 0.f, 0.f);
@@ -38,10 +38,4 @@
@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
@@ -43,17 +43,4 @@
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;
-}
@@ -4429,7 +4429,6 @@
cell.tintColor = [NCBrandColor sharedInstance].brandElement;
cell.labelTitle.textColor = [UIColor blackColor];
cell.labelTitle.text = metadata.fileNameView;
@@ -4685,6 +4684,10 @@
+ // Progress
+ float progress = [[appDelegate.listProgressMetadata objectForKey:metadata.fileID] floatValue];
+ cell.transferButton.progress = progress;
+
// gesture Transfer
[cell.transferButton.stopButton addTarget:self action:@selector(cancelTaskButton:withEvent:) forControlEvents:UIControlEventTouchUpInside];