[Solved] Objective c: download a file with progress view [closed]
You can get expected total file size in following callback method of NSURLconnection, – (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response { expectedTotalSize = response.expectedContentLength; } then in the following callback method you can calculate how much data has been recieved, – (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { recievedData += data.length; } And you can use UIProgressView to show … Read more