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,626
  • 1
  • 27
  • 42
Andrius Steponavičius
  • 8,074
  • 3
  • 22
  • 25

1 Answers1

9

Try this:

textView.font.lineHeight * 5
Abhinav
  • 37,684
  • 43
  • 191
  • 309