daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"];
RAW Paste Data
Top