Reputation: 8184
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
UITextView
Upvotes: 4
Views: 3413
Reputation: 38162
Try this:
textView.font.lineHeight * 5
Upvotes: 9