I was trying to remove a key value pair from the dictionary with CFDictionaryRemoveValue.
But its not removing the keys and values.Its printng me the key-value pairs after removing too.
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);
output
The value is 12 and L
The value is 12 and L
The value is not in the dictionary anymore, but still in memory, and
valuestill points there. Try:And see what happens.