I am working on SQLite and I have written a query which returns me two arrays ItemsArray and CustomersIDArray as:
ItemsArray Element at Index 0 = Off White,
try this:
NSArray *copy = [ItemsArray copy]; NSInteger index = [copy count] - 1; for (id object in [copy reverseObjectEnumerator]) { if ([ItemsArray indexOfObject:object inRange:NSMakeRange(0, index)] != NSNotFound) { [ItemsArray removeObjectAtIndex:index]; } index--; }