title: Get Multiple Locations of the Same String in Array
body: <p>Is there any way to get the indices of the same string (that appears more than once) in a single array? I know I can find a specific string's location using:</p>
  
  <pre><code>[nameOfArray indexOfObject:@"apple"]
  </code></pre>
  
  <p>Of course, I could create a for loop essentially using the same code above and ignoring the previous "apples" found. I can't help to feel that there is a simpler (built-in) way to do this in objective-c. Am I right?</p>
  
  <p>Thank you all in advance.</p>