开发者

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

开发者 https://www.devze.com 2023-03-05 20:02 出处:网络
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 ,

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

精彩评论

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

关注公众号