Skip to content

Instantly share code, notes, and snippets.

@ivangodfather
Created August 30, 2014 21:10
Show Gist options
  • Select an option

  • Save ivangodfather/c9c089f0a836d4225584 to your computer and use it in GitHub Desktop.

Select an option

Save ivangodfather/c9c089f0a836d4225584 to your computer and use it in GitHub Desktop.
NSMutableArray *CustomClassArray = //Objects of type array
class CustomClass : Object
{
@property NSString *objectID;
}
NSMutableArray *filteredArray = [NSMutableArray new];
for (CustomClass *customClass in CustomClassArray) {
[filteredArray addObject:.... ?] //Only if filteredArray not contains another customClass object with the same objectID
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment