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

输入框的UITextView换行滚动不准确 #19

Open
gang544043963 opened this issue Aug 24, 2016 · 3 comments
Open

输入框的UITextView换行滚动不准确 #19

gang544043963 opened this issue Aug 24, 2016 · 3 comments

Comments

@gang544043963
Copy link

UITextView输入到两行和三行的时候,滚动结果偏上。我试图去解决但是没解决了。但问题可以定位在CGSize textSize = [self.textView sizeThatFits:CGSizeMake(CGRectGetWidth(textViewFrame), 1000.0f)];得到的size有问题

@ws00801526
Copy link
Owner

能说下你的iOS版本,以及 截图给我看下么

@gang544043963
Copy link
Author

每个iOS版本都一样。输入到第二行的时候,上滚,但是第二行不贴底部。到第四行的时候就好了。你可以观察一下两行和四行的区别

@ws00801526
Copy link
Owner

不好意思 可能这边还是需要你提供个截图

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

2 participants