Tags
ios , xcode , OS X
Asked 8 years ago
5 Oct 2016
Views 1569
QuickIos

QuickIos posted

alamofire updated to 4.0 and .request not working


 Alamofire.request(.GET, urlString).response { request, response, data, error in
    print(request)
    print(response)
    print(data)
    print(error)
}


used with code alamofire 3.0 and it now with alamofire 4.0 it gives error , what wrong ?
Mahesh Radadiya

Mahesh Radadiya
answered Nov 30 '-1 00:00

in Alamofire 4
use below code to request


Alamofire.request(urlString).response { response in // method defaults to `.get`
    debugPrint(response)
}
Post Answer