title: iOS - Scroll TextView to top when it's in a tableview cell
body: <p>I have a <code>UITextView</code> inside a custom <code>TableView</code> cell.  I want the text view to scroll to the top by default.  I usually do it this way in regular views:</p>
  
  <pre><code>override func viewDidLayoutSubviews() {
  
      super.viewDidLayoutSubviews()
      let fixedWidth = bioView.frame.size.width
      bioView.sizeThatFits(CGSize(width: fixedWidth, height: CGFloat.greatestFiniteMagnitude))
      let newSize = bioView.sizeThatFits(CGSize(width: fixedWidth, height: CGFloat.greatestFiniteMagnitude))
      var newFrame = bioView.frame
      newFrame.size = CGSize(width: max(newSize.width, fixedWidth), height: newSize.height)
      bioView.frame = newFrame;
      bioView.scrollRangeToVisible(NSRange(location:0, length:0))
  }
  </code></pre>
  
  <p>bioView is my text view object.  However, this doesn't work in my case since I can't reference the <code>textview</code> in the <code>ViewController</code> class and can only do so in the <code>CustomCell</code> class and that class cannot override <code>viewDidLayoutSubviews</code>.  Any help?</p>