If you have an NSArray of strings
{ @\"ONE\", @\"ONE\", @\"ONE\", \"TWO\", @\"THREE\", @\"THREE\" }
How would I turn that into
<
Hmm.. you could just use a loop ?
NSMutableArray *newarray = [[NSMutableArray alloc] init]; NSString *laststring = nil; for (NSString *currentstring in oldarray) { if (![currentstring isEqualtoString:laststring]) [newarray addObject:currentstring]; laststring = currentstring }