title: Resizing UITextView in custom UITableViewCell
body: <p>I have a custom <code>UITableViewCell</code> and I'm trying to resize the <code>UITextView</code> inside it based on the  content size. I'm on iOS7 and using Autolayout.</p>
  
  <p>I've tried using the following:</p>
  
  <pre><code>[cell.question setScrollEnabled:YES];
  [cell.question sizeToFit];
  [cell.question setScrollEnabled:NO];
  </code></pre>
  
  <p>and</p>
  
  <pre><code>- (CGRect)textViewHeightForAttributedText: (NSAttributedString*)text andWidth: (CGFloat)width
  {
      UITextView *calculationView = [[UITextView alloc] init];
      [calculationView setAttributedText:text];
      CGSize size = [calculationView sizeThatFits:CGSizeMake(width, FLT_MAX)];
      CGRect finalFrame = CGRectMake(0, 0, width, size.height);
      return finalFrame;
  }
  </code></pre>
  
  <p>from different SO posts. I'm able to resize the frame. But the issue is I'm not able to see the change visibly. In the sense, when I log it, I can see the change. But the <code>UITextView</code> doesnt resize. I cant find any autolayout dependencies either.</p>
  
  <p>When I disabled AutoLayout, it seems to work. How do I do this, by enabling AutoLayout?</p>
  
  <p>Thanks.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here's my <code>UITextView</code> constraints</p>
  
  <p><img src="https://i.stack.imgur.com/KMRWk.png" alt="Screenshot"></p>