会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
zhaosn
随笔档案-2018年06月
CGSize利用sizeWithAttributes 计算文字长度
2018-06-14 15:19 by zhaosn, 849 阅读,
收藏
,
摘要: NSString *str =@"abcdefg"; CGSize lblSize = [@"abcdefg" sizeWithAttributes:@{NSFontAttributeName:descriptionLabel.font}]; 此时 lblSize.width的值为str =@"ab
阅读全文
0 Comment
About