4

Not sure if that was mentioned before, but I could not find the answer anywhere.

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

Bhavesh Nayi
  • 3,618
  • 1
  • 26
  • 42
Andrius Steponavičius
  • 7,794
  • 2
  • 21
  • 25

1 Answers1

9

Try this:

textView.font.lineHeight * 5
Abhinav
  • 37,124
  • 41
  • 185
  • 304