| 1 | #import <Foundation/Foundation.h> |
| 2 | |
| 3 | int main(int argc, const char **argv) |
| 4 | { |
| 5 | @autoreleasepool |
| 6 | { |
| 7 | const NSUInteger values[] = { 1, 2, 3, 4, 5 }; |
| 8 | |
| 9 | NSIndexPath* indexPath1 = [NSIndexPath indexPathWithIndexes:values length:1]; |
| 10 | NSIndexPath* indexPath2 = [NSIndexPath indexPathWithIndexes:values length:2]; |
| 11 | NSIndexPath* indexPath3 = [NSIndexPath indexPathWithIndexes:values length:3]; |
| 12 | NSIndexPath* indexPath4 = [NSIndexPath indexPathWithIndexes:values length:4]; |
| 13 | NSIndexPath* indexPath5 = [NSIndexPath indexPathWithIndexes:values length:5]; |
| 14 | |
| 15 | NSLog(@"%@" , indexPath1); // break here |
| 16 | NSLog(@"%@" , indexPath2); |
| 17 | NSLog(@"%@" , indexPath3); |
| 18 | NSLog(@"%@" , indexPath4); |
| 19 | NSLog(@"%@" , indexPath5); |
| 20 | } |
| 21 | return 0; |
| 22 | } |
| 23 | |