I have an app that uses a UITableView to list documents which are stored locally on the device.
These documents are fairly large in file size so instead of making the user download them all when they download the app I would like to provide a way for them to download the individual documents as needed.
Is there a way to list each file in the table view with a download button in the cell?
Once they download that file the download button goes away and the user can access the detail view controller which contains the file.
Can anyone point me in the right direction for this?
Sure, all you will have to do is add the
UIButtonin the cellscontentView. Once it is clicked you should definitely run the download in a background thread, and since you probably want to be able to do multiple downloads at once I would recommend using GCD to queue your downloads.