我得到的值以下響應數組:如何顯示使用Alamofire和swift3在tableview中的數據?
["Mallard Point Trailer Court","Golddust","Hagler","McCosh Mill","Graystone","Old Jonesboro","Carlees Mobile Home Court","Denson","Blake","Inverness Cliffs"]
如何使用alamofire加載在我的tableview這個數據?
這裏是我的代碼
let url = Constants.CityUrl + fullName
print(url)
Alamofire.request(url, method: .get).responseJSON { response in
if let JSON = response.result.value {
print("JSON: \(JSON)")
let response = JSON as! NSArray
}
[從JSON填充的tableview細胞與Alamofire(SWIFT 2)](的可能的複製http://stackoverflow.com/questions/35506139/populating-tableview - 細胞 - 從 - JSON-與-alamofire-迅速-2) – NSNoob