Closed tangzzz-fan closed 4 years ago
see the demo
the demo used in ViewController2 need add download task first, then get task in session manager according of index path row. But in tableview cell download cases, all tasks have not been add to the session manager, getTask(indexpath.row) will return a wrong task.
I think I understand what you mean.
When you click the cell download button to add download task, the task comes last.
So, you have two ways to solve it:
sessionManager.moveTask(at: sourceIndex, to: destinationIndex)
Have solved the issue, thanks.
Hi, Daniels, I used the tool in my test project for file download each file cell item, but Tiercel cannot give a good support about it, can you give a detail demo on it? The common scenario is a file list to download, click the cell download button to download the each file, observer the progress view in each cell. I tried the way: get tasks.safeObject in tableView:willDisplayCell, but, the order is missed. Thanks a lot