Guest User

Untitled

a guest
Jan 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. @class RKManagedObject (PrimaryKeysFix)
  2.  
  3. + (id)objectWithPrimaryKeyValue:(id)value {
  4. NSPredicate* predicate = [NSPredicate predicateWithFormat:@"%K = %@", [self primaryKeyProperty], value];
  5. return [self objectWithPredicate:predicate];
  6. }
  7.  
  8. @end
Add Comment
Please, Sign In to add comment