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

kCountMagnitudeAdaptationRatio #39

Open
fantasticiOS opened this issue Nov 29, 2018 · 0 comments
Open

kCountMagnitudeAdaptationRatio #39

fantasticiOS opened this issue Nov 29, 2018 · 0 comments

Comments

@fantasticiOS
Copy link

fantasticiOS commented Nov 29, 2018

We use a view to hold a UILabel,use "setFrame"function to hold a text,but actually,the width we calculated is not precise.kCountMagnitudeAdaptationRatio will not as precise as we expected when count becomes larger and larger.What causes the problem.
CGSize size = [badgeText boundingRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) options:1|2|8|32 attributes:@{NSFontAttributeName:TT_FONT_ZH(10)} context:nil].size;

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