RosettaCodeData/Task/Associative-array-Creation/Objective-C/associative-array-creation-1.m
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

5 lines
178 B
Objective-C

NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
@"Joe Doe", @"name",
[NSNumber numberWithUnsignedInt:42], @"age",
[NSNull null], @"extra",
nil];