title: How can I get all values for specific key from each NSDictionary in an NSArray?
body: <p>I have an array which contains dictionary objects. In each dictionary the key are common. Now I want to get all the values of that key. I have got these values with iteration, but I am looking for some straight forward way or a default method which does this job.</p>
  
  <p>Can you please help me to get one default method which serves the purpose? Thanks.</p>
  
  <p>Data Structure is like this:</p>
  
  <pre><code>&lt;array&gt;
      &lt;dict&gt;
          &lt;key&gt;Match&lt;/key&gt;
          &lt;string&gt;Football&lt;/string&gt;
          &lt;key&gt;Stadium&lt;/key&gt;
          &lt;string&gt;XXXXX&lt;/string&gt;
      &lt;/dict&gt;
      &lt;dict&gt;
          &lt;key&gt;Match&lt;/key&gt;
          &lt;string&gt;HOCKY&lt;/string&gt;
          &lt;key&gt;Stadium&lt;/key&gt;
          &lt;string&gt;XXXXX&lt;/string&gt;
      &lt;/dict&gt;
   &lt;/array&gt;
  </code></pre>
  
  <p>I am doing this now:</p>
  
  <pre><code>NSMutableArray * matches = [[NSMutableArray alloc] init];
          for (int i = 0; i&lt; myArray.count; i++){
              [matches insertObject:[[myArray objectAtIndex:i] objectForKey:@"Match"] atIndex:i];
          }
          [matchDataArray addObjectsFromArray:matches];
  </code></pre>
  
  <p>It gives me correct answer. But I don't want to do this iteration. I want a method which will return me all values of "Match" key from all indexes of array and save in another array at once. newly created array will have only the values of Match key from all indexes of array.</p>
  
  <p>Is this possible??</p>