title: Adjust Label based on text size in Xamarin IOS
body: <p>Auto Adjust UILabel size based on text.</p>
  
  <pre><code>lbl_genericIndicators.Font = UIFont.FromName (KHELVETIC, KFontSize12);
  float width = View.Frame.Size.Width-20;
  SizeF size = ((NSString)lbl_genericIndicators.Text).StringSize(lbl_genericIndicators.Font,constrainedToSize:new SizeF(width,100),
  lineBreakMode:UILineBreakMode.WordWrap);
  var labelFrame = lbl_genericIndicators.Frame;
  labelFrame.Size = new SizeF(width,size.Height);
  lbl_genericIndicators.Frame = new RectangleF (10, 128, size.Width,size.Height);
  </code></pre>
  
  <p><strong>Below is the sample text:</strong></p>
  
  <blockquote>
    <p>UITextView displays a region that can contain multiple lines of When a
    user taps a text view, a keyboard appears; when a user taps Return in
    the keyboard, the keyboard disappears and the text view can handle the
    input in an application-specific way. You can specify attributes, such
    as font, color, and alignment, that apply to all text in a text view.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/FmOJC.png" alt="enter image description here"></p>
  
  <p>The above text I am using for example.  It need to adjust automatically  for display the  content.</p>