Dictionary是一种通用类型,需要键和值的类型信息。
使用
Dictionary<String,Any>或更短
[String:Any]:
let datasourceDictionary = try! PropertyListSerialization.propertyList(from:data!, format: nil) as! [String:Any]
该
options参数可以省略。

Dictionary是一种通用类型,需要键和值的类型信息。
使用
Dictionary<String,Any>或更短
[String:Any]:
let datasourceDictionary = try! PropertyListSerialization.propertyList(from:data!, format: nil) as! [String:Any]
该
options参数可以省略。