title: How Can I increase my View Height with my UITextView?
body: <p>I have created one sample demo for UITextView with UIView.
  I know I have asked duplicated.But could not able to solve it.</p>
  
  <h1>Code Is</h1>
  
  <pre><code>- (void)textViewDidChange:(UITextView *)textView
  {
  
      CGFloat fixedWidth = textView.frame.size.width;
      CGSize newSize = [textView sizeThatFits:CGSizeMake(fixedWidth, MAXFLOAT)];
      CGRect newFrame = self.myTextView.frame;
      newFrame.size = CGSizeMake(fmaxf(newSize.width, fixedWidth), newSize.height);
      textView.frame = newFrame;
  
  } 
  </code></pre>
  
  <h1>Image Is</h1>
  
  <p><a href="https://i.stack.imgur.com/p2cRZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p2cRZ.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/uSwMW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uSwMW.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/yj197.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yj197.png" alt="enter image description here"></a></p>
  
  <p>My Requirement is:-
  When I type on textview textview expand perfectly.But
  My view (Dark BLUE) is not expand with my textview.</p>
  
  <p>Please help me I want that my view should increase with UITextview height.I have used above code for increase height of textview.</p>
  
  <p>Thank You</p>