Skip to content

Instantly share code, notes, and snippets.

@Ibrahimhass
Last active January 21, 2019 18:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Ibrahimhass/014e588459e504873d72c69ca9b5a945 to your computer and use it in GitHub Desktop.
NSMutableArray *bandMembers = [[NSMutableArray alloc] initWithArray:@[@"Paul", @"John", @"George", @"Ringo"]];
NSPredicate *sPredicate = [NSPredicate predicateWithFormat:@"!SELF contains[c] 'o'"];
[bandMembers filterUsingPredicate:sPredicate];
NSLog(@"%@", bandMembers);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment