title: iOS - Help Using [NSPredicate predicateWithFormat]
body: <p>Hey so I'm using a NSPredicate to filter an array. Currently I use the following piece of code: </p>
  
  <pre><code>NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF.name contains[c] %@", searchText];
  </code></pre>
  
  <p>This has been working alright as it looks for the attribute .name and checks to see if it is contained in the searchText.  I was wondering if there is a way for me to change it from checking if it's contained in the search text to if the search text begins with the search filter.  I.E. if the search text is <code>school</code> and I type <code>sc</code> as the filter the search text stays but if I type <code>sco</code> the search text <code>school</code> is filtered out.  Is there some sort of <code>beginswith</code> that I can use instead of <code>contains[c]</code>. Thanks!</p>