I am trying to achieve [this](http://www.flickr.com/photos/74322780@N08/8050170687/).
At the moment I have [this](http://www.flickr.com/photos/74322780@N08/8073957169/in/photostream).

So I got it so far to place images in my customTableViewCell. But it always places the same images on each row. What I want is on the following row takes the next image.

I have a counter namely 'indexOfIndexPath'. And this is what I do in my CellForRowAtIndexPath.

```
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *simpleTableIdentifier = @"PlayerCustomCell";

    PlayerCustomCell *cell = (PlayerCustomCell *)[tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
    if (cell == nil)
    {
        NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"PlayerCustomCell" owner:self options:nil];
        cell = [nib objectAtIndex:0];
    }
 if(indexPath.row == 0){
     NSIndexPath *path = [NSIndexPath indexPathForRow:indexPath.row+_indexOfIndexPath inSection:0];
     NSLog(@"%@",path);
     Team *team = [self.fetchedResultsController objectAtIndexPath:path];
    if(!img1){
        img1 = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:team.image]];
        UIImage* image = [[UIImage alloc] initWithData:img1];
        [cell setImage:image forPosition:1];
        _indexOfIndexPath++;
    }

    NSIndexPath *path1 = [NSIndexPath indexPathForRow:indexPath.row+_indexOfIndexPath inSection:0];
     NSLog(@"%@",path1);
    Team *team1 = [self.fetchedResultsController objectAtIndexPath:path1];
    if(!img2){
        img2 = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:team1.image]];
        UIImage* image = [[UIImage alloc] initWithData:img2];
        [cell setImage:image forPosition:2];
        _indexOfIndexPath++;
    }

    NSIndexPath *path2 = [NSIndexPath indexPathForRow:indexPath.row+_indexOfIndexPath inSection:0];
     NSLog(@"%@",path2);
    Team *team2 = [self.fetchedResultsController objectAtIndexPath:path2];
    if(!img3){
        img3 = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:team2.image]];
        UIImage* image = [[UIImage alloc] initWithData:img3];
        [cell setImage:image forPosition:3];
        _indexOfIndexPath++;
    }

    NSIndexPath *path3 = [NSIndexPath indexPathForRow:indexPath.row+_indexOfIndexPath inSection:0];
    Team *team3 = [self.fetchedResultsController objectAtIndexPath:path3];
    if(!img4){
        img4 = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:team3.image]];
        UIImage* image = [[UIImage alloc] initWithData:img4];
        [cell setImage:image forPosition:4];
        _indexOfIndexPath++;
    }else{
        img4 = [[NSData alloc] initWithContentsOfFile:@"keeperNil.jpg"];
        UIImage* image = [[UIImage alloc] initWithData:img4];
        [cell setImage:image forPosition:4];

    }

    NSIndexPath *path4 = [NSIndexPath indexPathForRow:indexPath.row+_indexOfIndexPath inSection:0];
    Team *team4 = [self.fetchedResultsController objectAtIndexPath:path4];
    if(!img5){
        img5 = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:team4.image]];
        UIImage* image = [[UIImage alloc] initWithData:img5];
        [cell setImage:image forPosition:5];
        _indexOfIndexPath++;
    }
    NSIndexPath *path5 = [NSIndexPath indexPathForRow:indexPath.row+_indexOfIndexPath inSection:0];
    Team *team5 = [self.fetchedResultsController objectAtIndexPath:path5];
    if(!img6){
        img6 = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:team5.image]];
        UIImage* image = [[UIImage alloc] initWithData:img6];
        [cell setImage:image forPosition:6];
        _indexOfIndexPath++;
    }
}else{
    if(img1){
        UIImage* image = [[UIImage alloc] initWithData:img1];
        if(image == nil){
            image = [image initWithContentsOfFile:@"keeperNil.jpg"];
        }else{
        [cell setImage:image forPosition:1];
        }
    }
    if(img2){
        UIImage* image = [[UIImage alloc] initWithData:img2];
        if(image == nil){
            image = [image initWithContentsOfFile:@"keeperNil.jpg"];
        }else{
            [cell setImage:image forPosition:2];
        }
    }
    if(img3){
        UIImage* image = [[UIImage alloc] initWithData:img3];
        if(image == nil){
            image = [image initWithContentsOfFile:@"keeperNil.jpg"];
        }else{
            [cell setImage:image forPosition:3];
        }
    }
    if(img4){
        UIImage* image = [[UIImage alloc] initWithData:img4];
        if(image == nil){
            image = [image initWithContentsOfFile:@"keeperNil.jpg"];
        }else{
            [cell setImage:image forPosition:4];
        }
    }
    if(img5){
        UIImage* image = [[UIImage alloc] initWithData:img5];
        if(image == nil){
            image = [image initWithContentsOfFile:@"keeperNil.jpg"];
        }else{
            [cell setImage:image forPosition:5];
        }
    }
    if(img6){
        UIImage* image = [[UIImage alloc] initWithData:img6];
        if(image == nil){
            image = [image initWithContentsOfFile:@"keeperNil.jpg"];
        }else{
            [cell setImage:image forPosition:6];
        }
    }
} 

    return cell;

```

Anybody has an idea how to fix this?

Thanks in advance?