Im using the Parse Framework for developing an app that loads images from the Parse Server, im using the Parse method:
PFFile *file = object[@"file"];
[file getDataInBackgroundWithBlock:^(NSData *data, NSError *error) {
...
}
but i want to limit the number of files getting in the background
Any idea how can i do that?
Thanks
You could wrap your retrieval of the file from Parse.com in an
NSOperation, and submit them to anNSOperationQueue. You should then set themaxConcurrentOperationCounton the queue to be the maximum concurrent file download operations, and you should have the concurrent download throttling that you're after.