//OC 的关联数组,变长关联数组同理
NSDictionary* d=[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:1],@"first",[NSNumber numberWithInt:2],@"two",[NSNumber numberWithInt:3],@"three", nil];
id something=[d objectForKey:@"two"];
NSLog(@"%@",something);
结果如下: