title: UIView addSubview nor working in UITableViewCell
body: <p>barView I have a Table View and, in each cell, I want to draw some statistic bars. I have an empty <code>UIView</code> created in my custom cell, its name is <code>mainView</code> and it is the view where the chart is drawn.</p>
  
  <p>In <code>cellForRowAtIndexPath</code> I'm doing this:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"CustomCellIdentifier";
      CustomCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
  
      CGRect barRect = CGRectMake(0, 0, 100, 10);
  
      UIView *barView = [[UIView alloc] initWithFrame:barRect];
      [barView setBackgroundColor:[UIColor redColor]];
      [cell.mainView addSubview:barView];
  
      return cell;
  }
  </code></pre>
  
  <p>The <code>barView</code> is not displaying on loading. It only shows after I change and return from another tab or <strong>after the cell goes out of the screen</strong>.</p>
  
  <p><strong>Notes:</strong></p>
  
  <ul>
  <li>I have tried <code>[cell.mainView setNeedsDisplay];</code></li>
  <li>I have a header made with another custom cell.</li>
  </ul>