阅读背景:

如何在下载文件时为NSURLConnection创建进度条?

来源:互联网 

I want to show up an progress bar while a download with NSURLConnection is happening. As I am getting data from the server, I could update the UI for every received package. But the problem is: How do I figure out how much data I have already, and how much data has to be downloaded? Probably in bytes... And then I have to do some math to get the percentage?I want to show up an progress bar while a downl




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: