Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在cell中使用YYTextView 自适应高度有问题。 #639

Open
rabbitmouse opened this issue Mar 27, 2017 · 2 comments
Open

在cell中使用YYTextView 自适应高度有问题。 #639

rabbitmouse opened this issue Mar 27, 2017 · 2 comments

Comments

@rabbitmouse
Copy link

if(textView.isFirstResponder) {
self.model.height = self.textView.textLayout.textBoundingSize.height ;

    UITableView *tableView = [self tableView];
    [tableView beginUpdates];
    [tableView endUpdates];
}

当多个cell存在,最底部cell键盘弹出并且输入时,YYtextview的container view不会变高 内容会向上滚而不是cell被撑高。
f51a97d7-0ab7-4a79-8f2b-80c04f068bc1

相同代码 使用系统的UITextView效果正常

@liangdahong
Copy link

目测YYTextView没有由内容自定义高度的功能。但UITextView有。
#666

@wolfcon
Copy link

wolfcon commented Apr 9, 2021

#951

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants