There are several files to download in a particular viewController
. When a user taps on download of a particular file, a progressView
appears to show the amount of data downloaded. Also at a particular time multiple files can be downloaded. Since the file is quite large, it takes a few minutes to complete the download. The problem is that when I go to another ViewController
, all the downloads stop and i have to stay on the download ViewController
and wait for the download to complete. I am using NSURLSession
to download data. Is there a way to get the download going even when the download ViewController
is dismissed?
One option is i will transfer the code to appDelegate
. Is there any other convenient way to do this task.