[英]NSMutableDictionary in iPhone
After adding the key value pairs in NSMutableDictionary, when i retrive the key/values from it, will that retrived key/value be removed from NSMutableDictionary? 在NSMutableDictionary中添加键值对之后,当我从中检索键/值时,是否将从NSMutableDictionary中移除检索到的键/值? or is it stil maintained in NSMutableDictionary?
还是在NSMutableDictionary中维护?
If you are using objectForkey to retrieve the value, the key/value will stay in the dictionary. 如果使用objectForkey检索值,则键/值将保留在词典中。 If you would like to remove an object for a particular key from the dictionary, you need to use removeObjectForKey .
如果要从字典中删除特定键的对象,则需要使用removeObjectForKey 。
除非您调用removeObjectForKey或类似的名称,否则它将保留在那里。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.