Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. NSMutableArray *array = [[NSMutableArray alloc] init];
  2. for(B *b in A.bObjects)
  3. {
  4. if([b.cObjects count] == 0)
  5. [array addObject:b];
  6. }
  7.  
  8. NSPredicate* predicate = [NSPredicate predicateWithString:@"cObjects.@count == 0"];
  9. NSArray* emptyCObjects = [A.bObjects filteredArrayUsingPredicate:predicate];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement