I got 2 arrays of strings:
NSArray * current = @[@"1", @"6", @"53"];
NSArray * new = @[@"1", @"626", @"53", @"13"];
I want to get number 6 in array, and numbers 626 and 13 in second array (I want data that is in first array but there is not in second, and conversely)
NSMutableSet * newSet = [NSMutableSet setWithArray:new];
[newSet minusSet:[NSSet setWithArray:current ]];
NSArray * result1 = [NSArray arrayWithSet:newSet];
NSArray * result2 = ?
I not get it, I know that is very simple question, but I have no ideas