title: UITableViewCell losses repeated content in other cell
body: <p>I've a UITableView which when a cell has the same content that other, this content only appear in the las cell drawed. My custom cell adds an UIView property to add dynamic subviews from other class.</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView
       cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {   
      static NSString *MyIdentifier = @"cell";
  
      CollectionCell *cell = (CollectionCell *)[tableView 
                           dequeueReusableCellWithIdentifier:MyIdentifier];
      if (!cell) {
          cell = [[[CollectionCell alloc] initWithStyle:UITableViewCellStyleSubtitle 
                                    reuseIdentifier:MyIdentifier] 
                  autorelease];
      }
  
      [cell setCollectionView:/* Generated view in other class */];  
  
      return cell;
  }
  </code></pre>
  
  <p>The concrete problem is:</p>
  
  <p>My dynamic view is composed by, for example, 2 UILabels:</p>
  
  <ul>
  <li>if label 1 is a title, the title is unique for each row -> No problem, renders fine.</li>
  <li>if label 2 is a category, indexes from 0 to 5 have same category -> Only row at index 5 shows category label.</li>
  </ul>
  
  <p>I can't create this labels in cell instantiation and add as subview because the cell content is all dynamic.</p>
  
  <p>Thanks for your time and help.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <blockquote>
    <p>I can't create this labels in cell instantiation and add as subview because the cell content is all dynamic.</p>
  </blockquote>
  
  <p>I'm going to explain it in detail:</p>
  
  <p>The content and UI controls added to collectionView property can be differentes each execution. In one execution collectionView could have an UIImageView and a UILabel, and next execution it has 2 UILabels (for example). This is why I can't create something like this</p>
  
  <pre><code>    if (!cell) {
          cell = [[[CollectionCell alloc] initWithStyle:UITableViewCellStyleSubtitle 
                                    reuseIdentifier:MyIdentifier] 
                  autorelease];
  
          UILabel *foo = [[UILabel alloc] initWithFrame:SomeFrame];
          [foo setTag:101];
          [cell.collectionView addSubview:foo];
      }
  
      UILabel *foo = [cell.collectionView subviewWithTag:101];
      [foo setTitle:@"This content is dynamic"];
  </code></pre>
  
  <p>Thanks!</p>
  
  <p><strong>Update 2:</strong></p>
  
  <p>Appears to be a problem with custom UILabel subclass. If I use original UILabel to show strings works fine.</p>