add
expectedBytes = [response expectedContentLength];
to
-(void)connection:(NSURLConnection*)connection didReceiveResponse:(NSURLResponse*)response
and add
float progress = ((_bytesReceived/(float)_expectedBytes)*100)/100;
to
-(void)connection:(NSURLConnection*)connection didReceiveData:(NSData*)data
then setProgress: on your UIProgressView
From: http://www.developers-life.com/progress-bar-download-file-on-iphone.html
source share