UITextView 行高 [英] UITextView line height
本文介绍了UITextView 行高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
不确定之前是否提到过,但我在任何地方都找不到答案.
Not sure if that was mentioned before, but I could not find the answer anywhere.
我有 UITextView
一堆文本(大约 130 行)各不相同,我需要在我的 UITextView
I have UITextView
with bunch of text (about 130 lines) varies, I need to get height of 5 lines of that text in my UITextView
推荐答案
试试这个:
textView.font.lineHeight * 5
这篇关于UITextView 行高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文