title: UILabel Size to fit is not working
body: <p>This is what I'm doing. I'm not dynamically creating the label, just picking from the object library.it is working only if I statically increase the height of the label, but I doesn't know at runtime</p>
  
  <pre><code>[self.lblDescription setText:@"This is going to be a test description but a very big description that should increase in height"];
  [self.lblDescription sizeToFit];
  </code></pre>
  
  <p>The label is not going on the next line. But instead it is clipping it as soon as the left of the label reaches the right of the screen</p>
  
  <p>Based on the answers and I tried the following but didn't work:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      [self.lblDescription setText:@"This is going to be a test description but a very big description that should increase in size"];
      self.lblDescription.numberOfLines = 0;
      [self.lblDescription sizeToFit];
  }
  </code></pre>
  
  <p>I also tried setting - </p>
  
  <pre><code>[self.lblDescription setLineBreakMode:NSLineBreakByWordWrapping];
  </code></pre>
  
  <p>before calling <code>[self.lblDescription sizeToFit];</code> but didn't work</p>