Hi.
I have an array that I am trying to check wether or not an indexPath(.row) exists in.
I use this code:
if ([array containsObject:[NSNumber numberWithInt:indexPath.row]]){
NSLog(@"Yep, it exists in there.");
}
the array consist of the numbers 3, 8 and 2. The index path loads numbers fromm 0 to 8 in a loop.
Can anybody see why this doesen't work?