mercredi 21 janvier 2015

Getting the actual height of a UITextView


Vote count:

0




I have a NSAttributedString being passed into a UITextView:



NSAttributedString *str = @"A really long string ... that continues for awhile";


The string is random in length and I want to pass it into a UITextView.



myTextView.attributedText = str;


I need the width of the UITextView to be 300 but how do I find the heigt?



asked 56 secs ago

chris

3,176






Getting the actual height of a UITextView

Aucun commentaire:

Enregistrer un commentaire