&tag(NSDictionary);
- (id)objectForKeyNotNull:(id)key {
id object = [self objectForKey:key];
if (object == [NSNull null])
return nil;
return object;
}
if ([[dictionary allKeys] containsObject:key) {
//キーが存在
}
id value = [dictionary objectForKey:key];
if (value != nil) {
//キーが存在
}