Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
@"Joe Doe", @"name",
|
||||
[NSNumber numberWithUnsignedInt:42], @"age",
|
||||
[NSNull null], @"extra",
|
||||
nil];
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
NSDictionary *dict = @{
|
||||
@"name": @"Joe Doe",
|
||||
@"age": @42,
|
||||
@"extra": [NSNull null],
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
|
||||
[dict setObject:@"Joe Doe" forKey:@"name"];
|
||||
[dict setObject:[NSNumber numberWithInt:42] forKey:@"age"];
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
NSString *name = [dict objectForKey:@"name"];
|
||||
unsigned age = [dict objectForKey:@"age"] unsignedIntValue];
|
||||
id missing = [dict objectForKey:@"missing"];
|
||||
Loading…
Add table
Add a link
Reference in a new issue