title: dynamic height uilabel
body: <p>I am trying to change the uilabel height dynamically as the text width changes, but a problem arises when I try to use this line "white wallington hall".   Basically it calculates width which is in 2 lines in the uilabel, but when it shows in two lines it look like this:</p>
  
  <pre><code>"white   
   wallington h..."
  </code></pre>
  
  <p>Sample code:</p>
  
  <pre><code> UILabel* lbl_Property = [[UILabel alloc]init];
     [lbl_Property setFont:[UIFont fontWithName:@"Arial" size:10]];
     [lbl_Property setNumberOfLines:0];
     [lbl_Property setText:[arr_SubDetail objectAtIndex:x]];
     UIFont* font = [UIFont fontWithName:@"Arial" size:10];
     CGSize stringSize = [lbl_Property.text sizeWithFont:font];
     CGFloat width = stringSize.width;
  
  
     [lbl_Property setFrame:CGRectMake(lbl_Property.frame.origin.x, lbl_Property.frame.origin.y, lbl_Property.frame.size.width,5+lbl_Property.frame.size.height*(ceilf(width/110)))];
  </code></pre>
  
  <p>Actually after "white" there is a space and "wallington" isn't in that line so it goes on a new line, but it is not showing the complete text  </p>
  
  <p>How do I get it to show right?</p>