Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Progress bar while downloading files iOS

I am using the following to download the files from the internet:

NSData *myXMLData1 = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"Link]];

Now, I would like to put a progress bar while the download is going on. I checked various posts but i am not able to find out how to do it exactly.

Please help me!!

like image 668
user1228074 Avatar asked May 07 '12 10:05

user1228074


1 Answers

I would recommend looking into the ASIHTTP library, which contains a lot of usefull classes on mobile handling and download handling.

Here is a link where they describe what ASIHTTP can offer in terms of download progress tracking : http://allseeing-i.com/ASIHTTPRequest/How-to-use#progress

like image 163
Nils Munch Avatar answered Sep 19 '22 10:09

Nils Munch