title: Extra space at the end of UITextView
body: <p>I added text in <code>UITextView</code> and to understand the boundaries I colored my <code>UITextView</code> with cyan color.</p>
  
  <p><a href="https://i.stack.imgur.com/Xwak1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xwak1.png" alt="enter image description here"></a></p>
  
  <p>After google.com there is some extra space which I want to remove. </p>
  
  <pre><code>- (void)viewDidLoad {
          [super viewDidLoad];
          NSString *desc = [self htmlAfterReplacingTagsAndAddingStyle];
          _descriptionTextView.attributedText = [[NSAttributedString alloc] initWithData: [desc dataUsingEncoding:NSUTF8StringEncoding] options: @{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
          _descriptionTextView.linkTextAttributes = @{ NSForegroundColorAttributeName: [UIColor blueColor], NSUnderlineStyleAttributeName: [NSNumber numberWithInt:NSUnderlineStyleSingle] };
          _descriptionTextView.dataDetectorTypes = UIDataDetectorTypeLink;
          _descriptionTextView.scrollEnabled = NO;
          [self setTextViewHeight];
      }
  </code></pre>
  
  <p><strong>setTextViewHeight</strong></p>
  
  <pre><code>- (void)setTextViewHeight {
      UIFont *font = [UIFont fontWithName:@"OpenSans" size:14.0];
      UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, _descriptionContainer.frame.size.width, CGFLOAT_MAX)];
      label.numberOfLines = 0;
      label.lineBreakMode = NSLineBreakByWordWrapping;
      label.font = font;
      NSString *desc = [self htmlAfterReplacingTagsAndAddingStyle];
      label.attributedText = [[NSAttributedString alloc] initWithData: [desc dataUsingEncoding:NSUTF8StringEncoding] options: @{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
      [label sizeToFit];
      _descriptionTextView.backgroundColor = UIColor.cyanColor;
      [_descriptionTextView setContentInset:UIEdgeInsetsMake(0, 0, -80, 0)];
      _descriptionContainerHeight.constant = label.frame.size.height;
      }
  </code></pre>
  
  <p>I read about setting content inset but that is not helpful. Changing the value of -80 doesn't have any impact.</p>
  
  <p>I would appreciate some pointers which can help me remove the extra space present at the bottom of uitextView.</p>