我有阵列:
var arrDicContact = udContact.valueForKey("arrDicContact") as [NSDictionary]
Run Code Online (Sandbox Code Playgroud)
我想更改数组中的一个联系人:
for let dicx:NSDictionary in arrDicContact{
if (dic.valueForKey("name") as String) == selectedName{
//how to modify dic to newdic: dic = newdic
}
}
Run Code Online (Sandbox Code Playgroud)
我可以使用for循环与int i从0到arrDicContact.count-1.但是它没有退出...我喜欢循环(因为... ...)所以任何人都帮助我!:) Tks很多.