jeudi 16 juin 2016

How do I calculate the UILabel height dynamically


I have the following code:

label.numberOfLines = 0; // allows label to have as many lines as needed
label.text = @"some long text";
[label sizeToFit];

How do I get the height of label in points?


Aucun commentaire:

Enregistrer un commentaire