Andrius Steponavičius
Andrius Steponavičius

Reputation: 8184

UITextView line height

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

Upvotes: 4

Views: 3413

Answers (1)

Abhinav
Abhinav

Reputation: 38162

Try this:

textView.font.lineHeight * 5

Upvotes: 9

Related Questions