What is the difference between NSURLConnection, NSURLSession and AFNetworking?

I want to know what are the main differences between them and what is the best and most common method of managing web services at the end of iOS in Objective-c and fast.

As before, I worked in Objective-c, and when we need to use webservices, we use AFNetworking and NSURLConnections, after starting NSURLSession I switched to working with this in swift. So, which one is suitable, so I can manage all the conditions of network network services, etc.?

+3
source share
1 answer

The difference between NSURLConnection,NSURLSession

. NSURLSession , , ( ..) , .

NSURLSession , , ( iOS). , .

NSURLSession , , , , , - .

NSURLSession , , , , .., NSURLConnection, , , , .

NSURLConnection, NSURLSession AFNetworking?

NSURLConnection NSURLRequest cocoa . iOS 7 Apple NSURLSession.

, AFNetworking , ( HTTP-). - , NSURLConnection / NSURLSession . .

NSURLConnection NSURLSession . URL .

Find from reference1 reference2

rob dgatwood ...

+4

Source: https://habr.com/ru/post/1671428/


All Articles