Check if key exists in NSDictionary is null or not
Wednesday, June 26, 2013 |
Posted by
sub
Check if key exists in NSDictionary is null or not
e.g:
NSDictionary *result;
UIImage *myImage = ([result objectForKey:@"image"] != [NSNull null] ? [result objectForKey:@"image"] : nil);
Labels:
Objective-C Tip
0