Browsed by
Tag: AFURLSessionManager

[iOS] – Different action of AFURLSessionManager for different OS Version ?>

[iOS] – Different action of AFURLSessionManager for different OS Version

AFURLSessionManager  use to download file from internet, it’s provide some useful delegate to make sure developer can tracking process also error etc… Back to the day, my current project was use AFDownloadRequestOperation which made a wrapper of AFHTTPRequestOperation to download file. But from AFNetworking 3.0, they drop the AFHTTPRequestOperation so we cannot use AFDownloadRequestOperation anymore. We decide to use AFURLSessionManager instead of old library. The problem is AFURLSessionManager has different action about the way it’s fire the delegate. Here is a simple block of download function of AFURLSessionManager:

After testing, I see that the…

Read More Read More