Hacker News new | ask | show | jobs
by rcirka 4644 days ago
I've used AFNetworking pre-iOS7 and it's been a godsend. However with the advent on NSURLSession, I don't see the need to have a 3rd party wrapper to do network calls anymore. Although I admire Mattts' efforts, I'm still not convinced using AFNetworking 2.0 is more effective than using NSURLSession directly.
1 comments

In my opinion, no better case for AFNetworking 2.0 wrt/NSURLSession can be made than AFURLSessionManager, and all of the great stuff it does for you. http://cocoadocs.org/docsets/AFNetworking/2.0.0/Classes/AFUR...

Another essential feature is SSL pinning, which helps prevent against man-in-the-middle attacks and other vulnerabilities. If your app interacts with any sensitive customer information, you would be well-advised to take a look at AFSecurityPolicy: http://cocoadocs.org/docsets/AFNetworking/2.0.0/Classes/AFSe...

If you're using UIKit, there's a good chance that at least one of the many UIKit extensions would be worth your while: https://github.com/AFNetworking/AFNetworking/tree/master/UIK...

I also think serializers will have a dramatic impact on the reusability and composability of business logic across your application in a really elegant way.

I'd be very interested to hear your thoughts as you do networking on iOS 7 with and without AFNetworking. Feel free to reach out over Twitter or email.