title: UITextView height doesn't work on iPhone
body: <p><code>UITextView</code> height doesn't work on iPhone when I use dynamic content from <code>UITextViewCell</code>. On any iPad it works is well. I already read it(<a href="https://stackoverflow.com/questions/50467/how-do-i-size-a-uitextview-to-its-content">How do I size a UITextView to its content?</a>) but it didn't help me.</p>
  
  <p>My code is below</p>
  
  <pre><code>@IBOutlet weak var textView: UITextView! {
      didSet {
          textView?.text = textOfText
          self.textView.delegate = self
          self.textView.editable = false
          self.textView.scrollEnabled = false
      }
  }
  
   @IBOutlet weak var textViewHeight: NSLayoutConstraint! {
          didSet {
              self.textViewHeight.constant = self.textView.sizeThatFits(CGSizeMake(self.textView.frame.size.width, CGFloat.max)).height
          }
      }
  </code></pre>
  
  <p><strong>UPDATED</strong>
  That is how same text is look on iPhone and iPad.
  <img src="https://i.stack.imgur.com/6Tavg.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/SZc85.jpg" alt="enter image description here"></p>
  
  <p><strong>UPDATED 2</strong>
  I made following code</p>
  
  <pre><code>    @IBOutlet weak var textView: UITextView! {
      didSet {
          textView?.text = textOfText
          self.textView.delegate = self
          self.textView.editable = false
          self.textView.scrollEnabled = false
          var frame: CGRect!
          frame = textView.frame
          frame.size.height = textView.contentSize.height
          textView.frame = frame
      }
  }
  </code></pre>