NSMutableSet *intersection = [NSMutableSet setWithArray:newsmall];
//this shows an array of newsmall as expected
NSLog(@"intersection %@", intersection);
[intersection intersectSet:[NSSet setWithArray:newnewbig]];
//this shows nothing
NSLog(@"intersection %@", intersection);
//this shows an array of newnewbig as expected
NSLog(@"newnewbig %@", newnewbig);
NSArray *arrayfour = [intersection allObjects];
//this shows nothing
NSLog(@"arrayfour %@", arrayfour);
newsmall 和 newnewbig 有一些匹配的字符串,所以我希望 arrayfour 显示几个字符串。
我做错了什么?