title: NSPredicate for Array of Quickblox Custom Objects
body: <p>I have a <code>NSMutableArray</code> which contains a large number of QuickBlox Custom Objects (<code>QBCOCustomObject</code> class). </p>
  
  <p>When my user's enter name information into a textfield, I want to filter my tableview to show results based on their search.</p>
  
  <p>Here's how I would get the user's full name from the custom class...</p>
  
  <pre><code>for (QBCOCustomObject *object in self.userArray) { 
      NSString *c = [object.fields[@"fullName"];
      NSLog (@"%@", c);
  }
  </code></pre>
  
  <p>In the method below I am trying to setup the predicate but I'm struggling to find the correct format for the predicate. Can anyone help?</p>
  
  <pre><code>- (void)textFieldDidChange :(UITextField *)theTextField {
  
      NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(fullName CONTAINS[cd] %@)", self.searchBar.text];
      self.userArray = [[self.userArray filteredArrayUsingPredicate:predicate] mutableCopy];
      [self.tableView reloadData];
  
  }
  </code></pre>