UIFount有个属性可以测量高度的文本行
NSInteger numberLines = textView.contentSize.height / textView.font.lineHeight;
本文介绍了一种通过UIFount属性来测量文本行数的方法,使用textView.contentSize.height除以textView.font.lineHeight得到文本行数。
UIFount有个属性可以测量高度的文本行
NSInteger numberLines = textView.contentSize.height / textView.font.lineHeight;
转载于:https://www.cnblogs.com/gaojingxuan/p/5224543.html

被折叠的 条评论
为什么被折叠?