title: select indexOfObject from NSArray in Xcode by comparing string
body: <p>Hi I have <code>NSarray</code> values in Xcode. I need to get array  indexOfObject by comparing string values.
  my array values are</p>
  
  <pre><code> (
      {
      firstName = lord;
      lastname = krishna;
      },
      {
      firstName = priya;
      lastname = amirtha;
      }
   )
  </code></pre>
  
  <p>If I type first name in textfield and click button means last name want to display in another textfield.<br>
     thank you. </p>