Q:

Image view not showing, but did select is working

I have a collection view, but the image is not showing, the funny part is that the method didSelectItemAtIndexPath is working... what could be wrong? this is my cellForItemAtIndexPath code 
cell *cell = [self.collectionPhotos dequeueReusableCellWithReuseIdentifier:@"CVCell" forIndexPath:indexPath];
NSString *nombre =[self.arrayPhotos objectAtIndex:indexPath.row];
//[cell.imageView setImage:[UIImage imageNamed:nombre]];

cell.imageView.image = [UIImage imageNamed:nombre];
return cell;

A:

Sounds like you need to do a bit more in-depth debugging.
Change this single line:
cell.imageView.image = [UIImage imageNamed:nombre];

to:
if(cell)
{
    UIImage * imageForCell = [UIImage imageNamed: nombre];
    if(imageForCell)
    {
        if(cell.imageView)
            cell.imageView.image = imageForCell;
        else
            NSLog( @"surprise, imageView is null" );
    } else {
        NSLog( @"can't find image named %@", nombre );
    }
 } else {
     NSLog( @"cell is null" );
 }

And see what happens.

