title: UILabel not displaying multiple lines
body: <p>I know this is a very common issue here on stack overflow, however, i haven't been able to figure out what is going on by looking at the various threads on the topic.</p>
  
  <p>I've got a nib file with a UITableViewCell subclass and a UILabel in the cell. The desired behavior is for the UILabel to expand vertically and display multiple lines of text (if the text is long enough). I've set the number of lines property in interface builder to 0, and I've also set the line breaks to word wrap (also in interface builder). When I display the cell, I am setting the height of the cell to be a function of sizeWithFont: constrainedToSize: linebreakmode: using the text of the cell. The height is returning correctly for the cell, however the UILabel does not wrap, nor does it expand vertically. </p>
  
  <p>Any idea what might be going wrong?</p>
  
  <p>Thanks!</p>
  
  <p>**UPDATE</p>
  
  <p>Here is the code I used to calculate the height of the cell:</p>
  
  <pre><code>+ (CGFloat)heightForCellGiveText:(NSString *)text
  {
      CGSize size = [text sizeWithFont:[self defaultMainFont] constrainedToSize:CGSizeMake(LABEL_WIDTH, CGFLOAT_MAX) lineBreakMode:NSLineBreakByWordWrapping];
      return size.height + (2 * VERT_PADDING) + INTER_LABEL_PADDING;
  }
  </code></pre>
  
  <p>I was hoping to let interface builder automatically handle everything having to do with actually resizing the label (and not the cell)</p>