title: How do I change my label in customcell using the "void" didSelectItemAtIndexPath
body: <p>I have this problem. Use UICollectionView with my class "myCustomCell" where I inserted a label that I have to change. When I use the method:</p>
  
  <pre><code>-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
      NSString *CellIdentifier = @"Cell";
      CustomCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:CellIdentifier forIndexPath:indexPath];
  
      if (indexPath.section == 0) {
          cell.backgroundColor = [self colorForIndexToBlack:indexPath.item];
          UIColor *colorCell = cell.backgroundColor;
          NSString *strColorCell = [NSString stringWithFormat:@"%@", colorCell.hexStringValue];
          cell.lblCustomCell.text = [NSString stringWithFormat:@"HEX %@", strColorCell];
      } else {
          cell.backgroundColor = [self colorForIndexToWhite:indexPath.item];
          UIColor *colorCell = cell.backgroundColor;
          NSString *strColorCell = [NSString stringWithFormat:@"%@", colorCell.hexStringValue];
          cell.lblCustomCell.text = [NSString stringWithFormat:@"HEX %@", strColorCell];
      }
  
      return cell;
  }
  </code></pre>
  
  <p><strong>lblCustomCell</strong> (which is my label to be changed) is filled with the information i want and it's ok. But when i use this method <strong>"void"</strong> to select a single cell and edit the text of the label does not work and does not change the label with my new text.</p>
  
  <pre><code>- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
      NSString *CellIdentifier = @"Cell";
      CustomCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:CellIdentifier forIndexPath:indexPath];
  
      if (indexPath.section == 0) {
          cell.backgroundColor = [self colorForIndexToBlack:indexPath.item];
          UIColor *colorCell = cell.backgroundColor;
          NSString *strColorCell = [NSString stringWithFormat:@"%@", colorCell.hexStringValue];
          cell.lblCustomCell.text = strColorCell;
          NSLog(@"Indice della cella: %i %i %@", indexPath.item, indexPath.section * 2 + indexPath.row, strColorCell);
      } else {
          cell.backgroundColor = [self colorForIndexToWhite:indexPath.item];
          UIColor *colorCell = cell.backgroundColor;
          NSString *strColorCell = [NSString stringWithFormat:@"%@", colorCell.hexStringValue];
          cell.lblCustomCell.text = strColorCell;
          NSLog(@"Indice della cella: %i %i %@", indexPath.item, indexPath.section * 2 + indexPath.row, strColorCell);
      }
  }
  </code></pre>
  
  <p>How can fix?</p>