Alamofire fire variable type has no subscript members

前端 未结 2 1233
忘掉有多难
忘掉有多难 2020-11-30 14:48

After updating to Alamofire 4 and updating my code to Swift 3, all of my requests are not working for some reason. The variables that I am trying to utilize are highlighted

2条回答
  •  旧时难觅i
    2020-11-30 15:25

    I had similar problem, for me solution was to change it as below

    let urladdress = "https://api.github.com/users"
    Alamofire.request(urladdress).responseJSON(completionHandler: {
        response in
        print(response)
    })
    

提交回复
热议问题