I have NSMutableDictionary with (key,value) pairs.For JournalId the key is "journalId".I just want to check whether my dictionary contains specific "journalId", for eg, 29. If it exists, need to print the corresponding title and userId. eg.
{
journalId = 28;
title = Creed;
userId = 105; } {
journalId = 29;
title = Fg;
userId = 105; } {
journalId = 30;
title = Dhh;
userId = 105; }
I want to check in my dictionary whether it has journalId value = 28.
if (dictValues["journalId"] == 28){
print(dictValues["title"]
}
The above method shows error. Thanks in advance.