by Greenisus · 12y ago · 0 comments
All that said, using NSURLConnection (or NSURLSession) really isn't annoying anymore.
I'm going to give this an honest try.
Yes. Oh goodness, yes it is. Having consistent validation on the networking level means not having sporadic logic scattered throughout models and view controllers.
Your server sent invalid JSON (e.g. sending HTML instead)? AFNetworking just saved you from a crash, or some other undefined, dangerous behavior.
AFNetworking is pedantic because networking is such a wildcard, in terms of performance, consistency, and security.