title: Get object from array with NSDictionary objects
body: <p>I need to be able to display an object value no matter what the key is. Or display an object with the objects key. </p>
  
  <pre><code>    NSMutableArray *array = [NSMutableArray array];
      NSMutableDictionary *dict= [[NSMutableDictionary alloc] init];
  
      [dict setObject:[NSNumber numberWithInt:10] forKey:@"key"];
      [array addObject:dict];
  
      NSLog(@"Key: %@", [[array objectAtIndex:0] key]);
      NSLog(@"Value: %@", [[array objectAtIndex:0] valueForKey:[[array objectAtIndex:0] key]]);
  
      //Both logs "[__NSDictionaryM key]: unrecognized selector sent to instance"
  </code></pre>
  
  <p>Why doesn't this work? And how should I do it?</p>
  
  <p>NOTE: In this example the <code>keyValue</code> is "key", BUT I don't know the <code>keyValue</code>in the original code..</p>