brintos

brintos / llvm-project-archived public Read only

0
0
Text · 811 B · 08f4fd3 Raw
23 lines · plain
1#import <Foundation/Foundation.h>2 3int main(int argc, const char **argv)4{5    @autoreleasepool6    {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 here16        NSLog(@"%@", indexPath2);17        NSLog(@"%@", indexPath3);18        NSLog(@"%@", indexPath4);19        NSLog(@"%@", indexPath5);20    }21    return 0;22}23