Advertisement
Larme

Untitled

Dec 11th, 2020
1,151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     for (NSUInteger i = 0; i < [arrFields count]; i ++) {
  2.         id contentValues = [[arrFields objectAtIndex:i] objectForKey:@"failvalues"];
  3.         id contentFields = [[arrFields objectAtIndex:i] objectForKey:@"fieldvalue"];
  4.         if ([contentValues isKindOfClass:[NSArray class]] && [contentFields isKindOfClass:[NSArray class]]) {
  5.             NSSet *values = [[NSMutableSet alloc] initWithArray:contentValues];
  6.             NSSet *fields = [[NSSet alloc] initWithArray:contentFields];
  7.             [values intersectsSet:fields];
  8.             NSLog(@"Values: %@", [values allObjects]);
  9.         }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement