I want to download a certain amount of data from a server based on Core Data local database that contains links to the content.
I then want to have a table view that would dynamically display the content being downloaded one by one in a queue list.
It would resemble something you see in iTunes app on iPhone where you have a table of songs or podcasts being downloaded with a progress bar indicator.
I’ve checkout out many tutorials on NSOperationQueue like this one or this one and I’ve also decided not to use ASIHTTPRequest framework because it is outdated.
How exactly does one wrap the NSOperationQueue of items being downloaded into a UITableview with URLs taken from a Core Data database including download progress activity indicators and deletion of the element from the Table View once its done downloading?
Thanks in advance!
During my research on that topic I’ve ended up with writing my own custom class for the download queue.
NSOperationQueue, in my opinion, has several disadvantages connected with control ofNSOperations– for example you can’t move them up or down – only change their priorities from high to low.I’ve also opted out using the
ASIHTTPRequest frameworkbecause, as I’ve said earlier, it is outdated.I’ve based my class on
NSMutableArrayto hold queue elements andNSMutableDictionaryto hold some values for them.