Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Replaced predicate example since block-based predicates are not supported in CoreData
  • Loading branch information
alladinian committed Dec 12, 2014
1 parent 40fcfd4 commit 435d771
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -52,10 +52,10 @@ NSArray *people = [Person where:@{
}];
// You can even write your own NSPredicate
NSPredicate *membersPredicate = [NSPredicate predicateWithBlock:^BOOL(Person *person, NSDictionary *bindings) {
return person.isMember == YES;
}];
NSArray *members = [Person where:membersPredicate];
NSPredicate *predicate = [NSPredicate
predicateWithFormat:@"(name like[cd] %@) AND (birthday > %@)",
name, birthday];
NSArray *results = [Person where:predicate];
```

#### Order and Limit
Expand Down

0 comments on commit 435d771

Please sign in to comment.