我有一個返回一個NSDictionary一個回調函數: override func viewDidLoad()
{
super.viewDidLoad()
var nd: NSDictionary = [:]
parseJSON(callback: {dict in
nd = dict
//print(nd) This one prin
我試圖在字典數組中運行循環。但我發現了這個錯誤: Any is not convertible to NSDictionary
這是我實現: let content:NSArray = json .object(forKey: "books") as! NSArray
for contentDic:NSDictionary in content {
print(content