Xcode : Alamofire get String response

后端 未结 2 1488
深忆病人
深忆病人 2021-01-02 04:43

I am new in IOS development and currently learning networking with Alamofire

i am trying to make a login ... whenever the credentials are correct the .php file retur

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-02 05:11

    I resolve this by:

    print(response.request)  // original URL request
    print(response.response) // URL response
    print(response.data)     // server data
    print(response.result)   // result of response serialization
    

    source: https://github.com/Alamofire/Alamofire/issues/818

提交回复
热议问题