I need help.
I want to show data if there is data in dictionary else I want to show No-Data screen if there is no value in dictionary. But problem is like this that I'm getting count as 1. Though there is no value in dictionary.
As you all are trying to guess this one is duplicate. But my question is little-bit different. In this dictionary I have multiple key-value pairs. So I can't find for one key, that's why I'm just trying to get count of it's.
NSLog(@"%lu",(unsigned long)dict.count); //<-- It prints : 1
NSLog(@"%@", dict); //<----It will print below structure with no data
//Output :-
(
{
}
)
So how do I will identify like this dictionary to show it is empty. Though I tried but it is going count as 1.