Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (NSUInteger i = 0; i < [arrFields count]; i ++) {
- id contentValues = [[arrFields objectAtIndex:i] objectForKey:@"failvalues"];
- id contentFields = [[arrFields objectAtIndex:i] objectForKey:@"fieldvalue"];
- if ([contentValues isKindOfClass:[NSArray class]] && [contentFields isKindOfClass:[NSArray class]]) {
- NSSet *values = [[NSMutableSet alloc] initWithArray:contentValues];
- NSSet *fields = [[NSSet alloc] initWithArray:contentFields];
- [values intersectsSet:fields];
- NSLog(@"Values: %@", [values allObjects]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement