title: How to do something with every second object in a NSArray? (iPhone)
body: <p>I have a NSArray with many NSDictionaries. I'm using <code>for</code> to loop through it:</p>
  
  <pre><code>for (int i = 0; i &lt; [myArray count]; i++) {
  
   }
  </code></pre>
  
  <p>Now I want to do something with every second object of the array. Let's say the array has an <strong><em>count</em></strong> of 5. Than it will do something with the 2nd, 4th and 5th object. </p>
  
  <p>How can I do this?</p>
  
  <pre><code>for (int i = 0; i &lt; [myArray count]; i++) {
             if //check if it is the second object 
       }
  </code></pre>
  
  <p>EDIT: Every second object and the last object if one will remain..</p>