开发者

NSMutableDictionary in iPhone

开发者 https://www.devze.com 2022-12-22 16:37 出处:网络
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? or is it stil maintai

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? or is it stil maintained in NSMutableDictionary?


If you are using objectForkey to retrieve the value, the key/value will stay in the dictionary. If you would like to remove an object for a particular key from the dictionary, you need to use removeObjectForKey.


Unless you call removeObjectForKey or similar, it stays in there.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号