title: compare a string with NSMutablearray data in xcode?
body: <p>I have a NSMutableArray and I need to compare the content in it with a NSString..But couldn't get it ?</p>
  
  <p>My array</p>
  
  <pre><code>(
  {
    Code=Sunday;
  },
  {
   Code=Monday;
  },
  {
  Code=Tuesday;
  }
  )
  </code></pre>
  
  <p>I m comparing like this :</p>
  
  <pre><code>BOOL isTheObjectThere = [array containsObject:weekday];
  
  if([arr count]==0 &amp;&amp; isTheObjectThere==YES)
  {
  //do something
  }
  else
  {
  //do something
  }
  </code></pre>
  
  <p>Here weekday is NSString whose value=Sunday</p>
  
  <p>But isTheObjectThere is returning NO..</p>
  
  <p>Where Im going wrong?</p>