Closed xtreme8210 closed 7 years ago
You can use that : self.downloadManager.cancelTaskAtIndex(indexPath.row)
Hi, I have tried
[self.downloadManager cancelTaskAtIndex:selectedIndexPath.row];
then reload datas
[self.downloadingArray removeAllObjects]; self.downloadingArray = [[NSMutableArray alloc] initWithArray:(NSMutableArray *)self.downloadManager.downloadingArray];
I still get the data that I just deleted. Please help.
I found out, I should reload data in the delegate
- (void)downloadRequestCanceled:(MZDownloadModel *)downloadModel index:(NSInteger)index;
I have run "cancelTaskAtIndex:", but this does not remove the mzdownloadModel in the MZDownloadManager's downloadingArray.
Please help. thank you