views:

43

answers:

1

hi,

I am downloading a 25+ mb file from the server. Is there a way to predict the remaining time to download ? if yes how ?

+1  A: 

If you use ASIHTTPRequest instead of NSURLConnection, there are delegate methods to report total size and progress. If you're looking to hook up a progress bar, there's a very simple method to do exactly that.

Dan Ray
greate ! Any other way with nsurlconnection ?
thndrkiss
@thndrkiss - Wouldn't know. Once I discovered the joy that is ASIHTTPRequest, I quit using NSURLConnection and never looked back. I haven't used NSURLConnection in literally six months, and I've done a TON of HTTP client work.
Dan Ray