我UITextView
UITextView
时文字增加时动态增加,但NSTextAttachments
中有UITextView
个(自定义笑脸),但是高度赢了# 39; t相应增加,因为它假设NSTextAttachments
为文本而NSTextAttachments
超出UITextView
的范围。
NSString *str_TextDetail = [NSString stringWithFormat:@"%@",[[commentsArray objectAtIndex:indexPath.row] objectForKey:@"Content"]];
[_txtDetail setText:str_TextDetail];
[_txtDetail setNumberOfLines:0];
[_txtDetail sizeToFit];