//textView高度等于滚动高度

- (void)textViewDidChange:(UITextView *)textView

{

    //textView高度等于滚动高度

    _messageDetail.height = textView.contentSize.height;

    

}

原文地址:https://www.cnblogs.com/guochaoboke/p/5196132.html