title: UISearchBar - coloring the search text
body: <p>I have an application in which I use UISearchBar. Everything works fine, just need to search text, for example, colored blue. <strong>Example:</strong> If you enter into UISearchBar "cod" will appear, for example, the word "xcode" (because "cod" contains) and I needed to "cod" colored blue and the "x" and "e" remained original. Sorry for my English.</p>
  
  <p><strong>Code of my searchBar:</strong></p>
  
  <pre><code>-(void)searchBar:(UISearchBar*)searchBar textDidChange:(NSString*)text
  {
      if(text.length == 0)
      {
          isFiltered = FALSE;
      }
      else
      {
          isFiltered = true;
          filteredTableData = [[NSMutableArray alloc] init];
  
          for (Slova* slova in self.slovoArray)
          {
              NSRange nameRange = [slova.slovo rangeOfString:text options:NSCaseInsensitiveSearch|NSDiacriticInsensitiveSearch|NSWidthInsensitiveSearch ];
  
  
              if(nameRange.location != NSNotFound)
              {
                  [filteredTableData addObject:slova];
              }
          }
      }
  
      [self.tableView reloadData];
  }
  </code></pre>