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

关于点击范围不准确的问题,我在此申明下 #32

Open
lyb5834 opened this issue Mar 25, 2019 · 3 comments
Open

关于点击范围不准确的问题,我在此申明下 #32

lyb5834 opened this issue Mar 25, 2019 · 3 comments
Labels

Comments

@lyb5834
Copy link
Owner

lyb5834 commented Mar 25, 2019

必须设置字体属性,不然点击范围会不准确,重要的事情说三遍

必须设置字体属性!必须设置字体属性!必须设置字体属性!

eg:

[totalStr addAttribute:NSFontAttributeName 
 value:[UIFont systemFontOfSize:orginFont] 
 range:NSMakeRange(0, string.length)];
@lyb5834 lyb5834 pinned this issue Mar 25, 2019
@yly6518
Copy link

yly6518 commented Oct 18, 2019

中间加了 NSTextAttachment 图片 会导致计算范围不准确,其余文字字体均已设置

@lyb5834
Copy link
Owner Author

lyb5834 commented Oct 31, 2019

加附件确实算不准,等有时间我研究下

@MuRanJiangXia
Copy link

我设置了 字体属性也有问题呀,
swift版本是计算有问题
oc版本 是不会走计算方法

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

No branches or pull requests

3 participants