title: Searching by object property with UISearchController?
body: <p>In my <code>updateSearchResultsForSearchController</code> method, I have a searchPredicate that I use to find matches, however, I want to learn how to use it with an Object's property. </p>
  
  <p>I have an object called <code>Product</code> that has a String property called <code>title</code> which I would like to use as my search parameter. So far, this is what my search function looks like:</p>
  
  <pre><code>func updateSearchResultsForSearchController(searchController: UISearchController) {
          productSearchResults.removeAll(keepCapacity: false)
  
          let searchPredicate = NSPredicate(format: "SELF CONTAINS[c] %@", searchController.searchBar.text)
  
          let array = (orderGuideItemsList as NSArray).filteredArrayUsingPredicate(searchPredicate)
          productSearchResults = array as! [Product]
  
          self.tableView.reloadData()
  }
  </code></pre>
  
  <p>where <code>orderGuideItemsList</code> is an array of <code>Product</code> objects</p>
  
  <p>So is there a way for me to search based on <code>Proudct</code>'s <code>title</code> property? It doesn't have to use a predicate but that's what I have from a previous tutorial.</p>
  
  <p>Thanks!</p>