I have a UICollectionView with some cells. 
I made some test here:
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    UICollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"cellIdentifier" forIndexPath:indexPath];
    NSLog(@"nsindex path %@", indexPath);
    cell.backgroundColor=[UIColor greenColor];
    return cell;
}
Here is an example of one cell as it appears in the log:
nsindex path <NSIndexPath: 0xc000000000200016> {length = 2, path = 0 - 1}
How would I extract the value 1 (from path = 0 - 1) from the object in this example?