title: sizeToFit not working like we expecting
body: <p>I face a strange problem with an <code>UILabel</code> in <code>UITableView</code>. I have a label inside of a cell and I want use <code>sizeToFit</code> for it because I will move a <code>UIImageView</code> right after text.</p>
  
  <p>The problem is that the first time <code>sizeToFit</code> does not work as expected but after a little scroll my code is works perfectly.</p>
  
  <p>In cellForRow:</p>
  
  <pre><code>static NSString *cellID=@"cell";
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
  
  if (cell==nil) {
      cell=[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
  }
  
  UILabel *lbl = [cell.contentView viewWithTag:1];
  lbl.text = [self.word1 objectAtIndex:self.word1.count - indexPath.row - 1];
  
  CGRect rct = lbl.frame;
  rct.size.width = 300;
  lbl.frame = rct;
  [lbl sizeToFit];
  UIView *view = [cell.contentView viewWithTag:2];
  rct = view.frame;
  rct.origin.x = CGRectGetMaxX(lbl.frame) + 8;
  view.frame = rct;
  
  
  return cell;
  </code></pre>
  
  <p>And two pictures to better understand:</p>
  
  <p><a href="https://i.stack.imgur.com/cWXUJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cWXUJ.png" alt="First time, when size to fit works strange"></a></p>
  
  <p>After scroll, when the new cell are created correctly.
  <a href="https://i.stack.imgur.com/6FZWM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6FZWM.png" alt="After scroll, when the new cells are created correctly."></a></p>