我试图用 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