Development‎ > ‎

Objective-C

int index = -1;
if (index > array.count)
    NSLog(@"this will be printed");

Yea, count is an NSUInteger so you should compare index with (NSInteger)array.count.
Comments