You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
The text was updated successfully, but these errors were encountered:
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;
The text was updated successfully, but these errors were encountered: