Updating a global variable from JSON response inside function

前端 未结 2 1265
我在风中等你
我在风中等你 2021-01-29 08:39

I\'m trying to get some variables from JSON response and display it in a custom table view.. the problem is that the variables are never updated.. for more explanations here\'s

2条回答
  •  孤街浪徒
    2021-01-29 09:07

    write this in your address function after fetching the data into your arrays

    DispatchQueue.main.async{
        tableView.reloadData()
       }
    

提交回复
热议问题