Skip to content

Comment on AFNetworking 2.0

Comments

Kudos to Mattt Thompson and the whole community of collaborators that put work into this release. AFNetworking makes a large part of my job making iOS apps a joy, and I can't wait to start working with latest round of changes and features in this new release (including support for NSURLSession in iOS 7).

That said if you haven't used AFNetworking before, I highly recommend doing so. Start with the AFHTTPRequestOperation class(es). And if you're writing an API wrapper of any kind, definitely check out subclassing either AFHTTPRequestOperationManager (for iOS 6) or AFHTTPSessionManager (for iOS 7).

Edit: Derp, I was wrong — AFHTTPClient's been split-up. Thanks for calling me out, @dcaunt; I've updated my remarks.

https://github.com/AFNetworking/AFNetworking/wiki/AFNetworki...

With AFNetworking 2.0, you'll use AFHTTPRequestOperationManager in iOS 6 and AFHTTPSessionManager in iOS 7 rather than AFHTTPClient.

I glossed over that originally, apologies; I've updated my comment.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.