Check if key exists in NSDictionary is null or not
Wednesday, June 26, 2013 | Posted by sub |
0
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
Loading related posts...
Objective-C Tip
12:29 AM

Subscribe to:
Post Comments (Atom)