SyntaxFix
Write A Post
Hire A Developer
Questions
With literal syntax you can check as follows
static const NSString* kKeyToCheck = @"yourKey" if (xyz[kKeyToCheck]) NSLog(@"Key: %@, has Value: %@", kKeyToCheck, xyz[kKeyToCheck]); else NSLog(@"Key pair do not exits for key: %@", kKeyToCheck);