本文共 258 字,大约阅读时间需要 1 分钟。
NSArray *copy = [array copy];
NSInteger index = [copy count] -1;
for (id object in [copy reverseObjectEnumerator])
{
if ([array indexOfObject:objectinRange:NSMakeRange(0, index)] !=NSNotFound)
{
[array removeObjectAtIndex:index];
}
index--;
}
[copy release];
转载地址:http://mjosi.baihongyu.com/