开发者

How to view, find and remove key value pairs in CFMutable Dictionary

How do i find and remove the key value pairs of a particular key using CFMutableDictionaryRef. I have added a value using CFMutableDiction开发者_StackOverflow社区ary but i need to know how to search ,view and delete a keyvalue pair. The value i have created is a structure pointer and key is an integer value.


Beata,

The CFMutableDictionaryRef documentation shown Here will guide you.

In the order of your question:

For finding an element, see CFDictionaryGetValue

For removing an element, see CFDictionaryRemoveValue

Note that the CFDictionary types are a 'toll-free-bridge' with NSDictionary.

Frank

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜