title: search substring from mutable array in iphone
body: <p>How to search substring from NSMutableArray?</p>
  
  <p>NSMutableArray <strong>names</strong> having string values,</p>
  
  <p>searchText is a substring to search from name array values.  </p>
  
  <pre><code>for (NSString *sTemp in names)
      {
          NSRange titleResultsRange = [sTemp rangeOfString:searchText options:NSCaseInsensitiveSearch];
          //NSLog(@"sTemp = %@, searchText = %@",sTemp,searchText);
          NSLog(@"%@",titleResultsRange.length);
          if (titleResultsRange.length &gt; 0)
              [Items addObject:sTemp];
      }
  </code></pre>