【发布时间】:2011-05-16 06:54:40
【问题描述】:
我试图使用 CFDictionaryRemoveValue 从字典中删除键值对。 但它不会删除键和值。它也会在删除后打印键值对。
struct session *value = CFDictionaryGetValue(cfmdict,tiId);
NSLog(@"The value is %d and %c", value->a, value->c);
CFDictionaryRemoveValue(cfmdict,tiId);
NSLog(@"The value is %d and %c", value->a, value->c);
输出
The value is 12 and L
The value is 12 and L
【问题讨论】:
标签: objective-c cfmutabledictionary