开发者

using nsurlconnection calculate remaining time for download

开发者 https://www.devze.com 2023-01-18 09:25 出处:网络
I am downloading 开发者_StackOverflowa 25+ mb file from the server. Is there a way to predict the remaining time to download ? if yes how ?If you use ASIHTTPRequest instead of NSURLConnection, there a

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消