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

因为添加空白占位符,导致高度计算不对,尤其是在10个汉字的时候 #25

Open
Coder-Miao opened this issue Nov 3, 2021 · 0 comments

Comments

@Coder-Miao
Copy link

不知道基于什么考虑,添加了这些代码
unichar spacingChar = 0xFFFC;
NSString *spacingCharString = [NSString stringWithCharacters:&spacingChar length:1];
//空白占位符
NSAttributedString *placeholderStr = [[NSAttributedString alloc]initWithString:spacingCharString];
[str appendAttributedString:placeholderStr];

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

1 participant