I got some question is using ASIHTTPRequest to tracking Upload/Download progress
This is the sample from ASIHTTPRequest website
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setDownloadProgressDelegate:myProgressIndicator];
[request startSynchronous];
NSLog(@"Max: %f, Value: %f", [myProgressIndicator maxValue],[myProgressIndicator doubleValue]
It says :myProgressIndicator is an NSProgressIndicator.
But it looks like Apple deprecated NSProgressIndicator
So ... how can I know the Upload/Download progress ???
Also another question is ...if the Upload/Download was terminated before the task finish
How can I let the Upload/Download task continues start from the stop point(break point?) ?
Many thanks ~
Only certain methods of NSProgressView are deprecated. Specifically
-animate
,-animationDelay
, and-setAnimationDelay
. They changed how you use the class, they didn't deprecate the whole class.Also, with the tags you chose for your question, you probably want
UIProgressView
, which is the iPhone version.As the documentation says, the delegate can also be an UIProgressView in case of iphone/ipad:
source: http://allseeing-i.com/ASIHTTPRequest/How-to-use#tracking_progress