title: UICollectionViewCell Selection selects/highlights every 5 cells
body: <p>I have a horizontal collectionview with code to highlight/color the cell selected. It highlights the cell that was selected, but then every 5 cells after also get highlighted. Any idea what is going on?</p>
  
  <pre><code>- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
  {
      for(int x = 0; x &lt; [cellArray count]; x++){
          UICollectionViewCell *UnSelectedCell = [cellArray objectAtIndex:x];
          UnSelectedCell.backgroundColor = [UIColor colorWithRed:0.2 green:0.5 blue:0.8 alpha:0.0];
      }
      UICollectionViewCell *SelectedCell = [cellArray objectAtIndex:indexPath.row];
      SelectedCell.backgroundColor = [UIColor colorWithRed:0.2 green:0.5 blue:0.8 alpha:1.0];
      cellSelected = indexPath.row;
      NSLog(@"%i", cellSelected);
  
  }
  </code></pre>