setDownloadProgressBlock number of times called #669

Closed
elpuerco63 opened this Issue Dec 2, 2012 · 2 comments

Comments

Projects
None yet
3 participants

Is there a way to set how many times this block gets called during the life of the operation? I the number of times this is called during a download is blitzing the UI with calls to update a progressView.

I have concurrent downloads set to two but even if I set to one the sheer number of times this method gets called blocks the UI

Contributor

lxcid commented Dec 3, 2012

What are you doing in this block? Avoid doing too much heavy lifting here.

Contributor

mattt commented Dec 3, 2012

Is there a way to set how many times this block gets called during the life of the operation?

No. It's called every time a new chunk of data comes in.

Like @lxcid said, you shouldn't be doing much more than updating a progress bar or the like, at least without wrapping the work in a dispatch_async.

mattt closed this Dec 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment