Guest User

Untitled

a guest
Dec 7th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. - (NSArray *)filteredArrayUsingPredicate:(NSPredicate *)predicate
  2.  
  3.  
  4. to create the predicate use
  5.  
  6.  
  7. + (NSPredicate *)predicateWithBlock:(BOOL (^)(id evaluatedObject, NSDictionary *bindings))block
  8.  
  9. and something in the block like
  10.  
  11. return [[evaluatedObject myThing] isEqualToString:@"Foo"];
Add Comment
Please, Sign In to add comment