Which is easy to use Afnetworking / Nsurlsession / Alamofire

I want to make peace for the api call. I cannot use Afnetworking or NSurlsession or alamofire with SWIFT 3.0. Can anyone suggest me to use it.

+4
source share
2 answers

NSURLSessionnewer than NSURLConnectionif you use a fast language, then you can use your own methods with NSURLSessionor you can use Alamofire.

NSURLConnectionused in AFNetworking frameworks. If you use object-c, you can use it, which means you cannot use NSURLSession.

NSURLSession iOS 7.0 8.0. , NSURLConnection.

, API, NSURLSession ( ) ( ).

, Alamofire Framework.

:

NSURLConnection, NSURLSession AFNetworking?

+4

Swift 3.0 Alamofire , , .

Objective-C, AFNetworking.

AFNetworking Alamofire , .

+3

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


All Articles