Skip to content

Instantly share code, notes, and snippets.

@benjaminsnorris
Created December 3, 2014 22:54
Show Gist options
  • Save benjaminsnorris/28a09a8c300b8d018f30 to your computer and use it in GitHub Desktop.
Save benjaminsnorris/28a09a8c300b8d018f30 to your computer and use it in GitHub Desktop.
Compare arrays based on key
if (![[array1 valueForKey:@"uniqueId"] isEqualToArray:[array2 valueForKey:@"uniqueId"]]) {
// The arrays contain the same objects that each have an attribute of "uniqueId"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment