I’m using the AFNetworking framework to download files and write them to the local file system.
But since the files can be quite big I want to add a UIProgressView, but I can’t seem to find any method that gets updated with the progress.
I see people talking about setProgressBlock, but I can’t find any information about this in the docs: http://afnetworking.org/Documentation/Classes/AFHTTPRequestOperation.html
Is there a method that does this? I’m just using AFHTTPRequestOperation to download the files.
The
setDownloadProgressBlockmethod is part ofAFURLConnectionOperation, from whichAFHTTPRequestOperationinherits – that’s why you don’t see it in theAFHTTPRequestOperationdocumentation. The documentation you’re after is here:http://cocoadocs.org/docsets/AFNetworking/1.3.1/Classes/AFURLConnectionOperation.html