In AFNetworking 3.0, some things have been changed. Basically, there are no more operations, instead session data tasks . How can I get the status code from NSURLSessionDataTask ?
This is my block:
GET("users/check_email", parameters: parameters, progress: nil, success: { sessionDataTask, response in // here I need status code of response }) { sessionDataTask, error in completionBlock(nil, NSError(sessionDataTask: sessionDataTask)) }
ios swift afnetworking
Bartłomiej Semańczyk
source share