I need an application to download directories and their contents. So I decided to implement NSOperationQueue and I subclassed NSOperation to implement NSURLRequest, etc.
The problem is that I add all operations at once, and I cannot understand when all the files for one directory are loaded in order to update the interface and include this particular directory.
Now I need to wait for all files from all directories to be downloaded to update the user interface.
I have already implemented monitoring of key values ββfor operationCount NSOperationQueue and isFinished from NSOperation, but I do not know when the directory contains all the files in it!
Do you have any ideas?
Thank you so much
ios iphone ipad download nsoperation
Dabrut Apr 3 2018-12-12T00: 00Z
source share