Iphone – progress bar downloading image

iphoneprogress-bar

In my application i want to show the size of downloading image in label.like, 5 KB of 2MB .

Progress bar is used to show the image downloading and i want to show the total size of enter image description herecurrently downloading image as well as completed size of downloading(like,5 KB of 2 MB)

Anyone give me guidance to do this.

For this What should i do.please give me any sample code or tutorial for this.

Added Informations:

Already i'm using ASIHTTP Library .There are several delegate methods.In which method i want to give the code for finding the total size of the download image and progress of the downloding image.Please give me a code for findout the size of both (total size and downloaded size ) of an image.Please help me .stil i have no idea to find the size and which delegate method is used to support.

I'm really struggle in this.Please any one guide me to do this.

Best Answer

You can implement your own download progress system, or a simpler alternative that avoids reinventing the wheel would be to use the excellent ASIHTTPRequest library that provides you with a delegate method for getting the progress of a current download. It's also rather well documented: http://allseeing-i.com/ASIHTTPRequest/

Related Topic