如何在Swift中将
[String: Any]
转换为[String: String]
。我尝试了像这样进行类型转换,但并没有起到作用:for (key, value) in dictionary {
dictionary[key] = value as! String
}