I want to check if an NSDictionary is empty. I am doing it like this.
NSDictionary
mutDictValues = [[[NSUserDefaults standardUserDefaults] objectForKey:@\"dicV
if ( [mutDictValues count] == 0 ) { //code here } else { //code here }
After having your dic retrieved this should do
BOOL containsKeyABC = [myDict: valueForKey:@"ABC"]; int items = dict.count; if (items > 0) { //not empty }