I have a NSArray with NSIndexPaths inside of it
NSArray *array = [self.tableView indexPathsForSelectedRows];
for (int i = 0; i < [array count]; i++) {
NSLog(@"%@",[array objectAtIndex:i]);
}
The NSLog returns this:
<NSIndexPath 0x5772fc0> 2 indexes [0, 0]
<NSIndexPath 0x577cfa0> 2 indexes [0, 1]
<NSIndexPath 0x577dfa0> 2 indexes [0, 2]
I am trying to get the second value from the indexPath into just a plain NSInteger
indexPathsForSelectedRows
. You also can't just assign anNSIndexPath
instance to anNSArray
pointer. – Kalinin