daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 52 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top