1.利用keyValue的方式 (@distinctUnionOfObjects.self)
NSMutableArray *studentIDArray = [NSMutableArray array];
studentIDArray = [studentIDArray valueForKeyPath:@"@distinctUnionOfObjects.self"];
1.利用keyValue的方式 (@distinctUnionOfObjects.self)
NSMutableArray *studentIDArray = [NSMutableArray array];
studentIDArray = [studentIDArray valueForKeyPath:@"@distinctUnionOfObjects.self"];
本文标题:iOS 数组去重
本文链接:https://www.haomeiwen.com/subject/svhwhxtx.html
网友评论