Add UIProgressView to a NSURLConnection?
问题 Is it possible to add a UIProgressView to a NSURLConnection? Is it as simple as getting the length of the data and then setting it to an int then sending that int to my other class to my UIProgressView? Can someone show me how to do this? Are there any examples or links that will point me in the right direction? Thanks!!! 回答1: In your didReceiveResponse function you could get the total filesize like so - _totalFileSize = response.expectedContentLength; . In your didReceiveData function you