I am using AFNetworking and can successfully download a file.
At the end of the download, it does not appear in the directory that I set it to be though.
I did some searching and came across a few questions here on SO where it is suggested I use:
[_operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
But that comes up with an error and it is as far as I can tell not mentioned in their documentation.
the error is :
/Users/Jeff/Documents/Dropbox-01/Dropbox/Xcode Projects/Try Outs – JEFF/testDownload/testDownload/JWKDownloadViewController.m:177:10: No visible @interface for ‘AFURLConnectionOperation’ declares the selector ‘setCompletionBlockWithSuccess:failure:’
Is there an updated line I need to use???
Yes make sure that u have used correct path into
NSOutputStreamAdd this: