Alamofire POST request with Swift 2

后端 未结 2 1366
情歌与酒
情歌与酒 2021-01-12 22:00

I am trying to make a POST request in Alamofire to return a JSON object. This code worked in Swift 1, but in swift 2 I get this invalid parameter issue:

Tup         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-12 22:45

    Have you tried using three parameters in the .responseJSON and inserting a try catch block around the areas you want error logging, check out this link if you need help with swift 2 try catchs

提交回复
热议问题