- (void)textViewDidChange:(UITextView *)textView
{
//textView高度等于滚动高度
_messageDetail.height = textView.contentSize.height;
}
原文:http://www.cnblogs.com/guochaoboke/p/5196132.html