let roupa1: [String: String] = ["ID": "H1", "Descricao": "Roupa bacana!", "Preco": "40$"]
var roupasArray = [Dictionary<String, String>()]
roupasArray.append(roupa1)
UserDefaults.standard.set(roupasArray, forKey: "Roupas")
if let objecto = UserDefaults.standard.object(forKey: "Roupas") as? Array<Dictionary<String, String>>{
lbtest.text = (objecto[0]["ID"])
}
有人能帮助我吗?我是swift 3.0的新手,无处不在但无法找到解决方案