NSArray *copy = [YourMutableArray copy];
NSInteger index = [copy count] - 1;
for (id object in [copy reverseObjectEnumerator]) {if ([YourMutableArrayindexOfObject:object inRange:NSMakeRange(0, index)]
!= NSNotFound) { [YourMutableArrayremoveObjectAtIndex:index];
}
index--;
}
[copy release];
Thanks @vijay this works for me...
ReplyDelete