这两种方法有空试一下
方法1
NSArray *copy = [array copy];
NSInteger index = [copy count] - 1;
for (id object in [copy reverseObjectEnumerator])
{
if ([array indexOfObject:object inRange:NSMakeRange(0, index)] != NSNotFound)
{
[array removeObjectAtIndex:index];
}
index--;
}
[copy release];
原文:http://www.cnblogs.com/isItOk/p/5215543.html