title: UILabel with multiple lines and Auto Resizing Masks (UIViewAutoresizingMask)
body: <p>I have a problem with <code>UILabels</code> that contain text that is spread on multiple lines. It's nested into a fullscreen <code>UIView</code> that has <code>autoresizing</code> mask as well:</p>
  
  <pre><code>    view.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
  </code></pre>
  
  <p>I'd like to add autoresizingMask on the label</p>
  
  <pre><code>    label.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
  </code></pre>
  
  <p>But the problem is, this doesn't work as I'd like it to work. If I do this, after rotating the screen (which changes size of the view) then the label has smaller height and some of the text is cut off. (It doesn't display the whole text). If I don't add <code>UIViewAutoresizingFlexibleHeight</code>, then the label after rotation has big gaps above and under text (And I don't want that).</p>
  
  <p>I also tried adding <code>UIViewAutoresizingFlexibleBottomMargin</code>, but this doesn't help, as still not whole text is displayed.</p>
  
  <p><strong>EDIT:</strong>
  I really don't think Autoresizing Masks are going to solve this problem -> autoresizing masks resize view according to changes of size in superview. That's why height won't fit the text. The only solution I could think of is reseting the <code>UILabel</code> frame after superview gets resized. If I'm wrong, I'd gladly get corrected.</p>