This does not works for the new version 2.6.2.
How could I know the lines of an UILabel??
Update:I´ve got the number of lines with this:
(int)dialog.font.CalculatePrintedSize(dialog.text,true,UIFont.SymbolStyle.None).y;
But with this text:
dialog.text = "SD AD SA DSADSADSAD HOLA sfdsf sdf sd fsdfsdjs dhfsdkjhfsdj khfkjsdhf jskdhf sdhfsdkfhsdkj fjksd fhjsd hfj sdhfjsdkfhsdjf ";
I got 1, when should be 3 as you can see on the screenshot attached.
I don´t know what it is :S
Update 2:FIXED!
(int)dialog.font.CalculatePrintedSize(
dialog.processedText,true,UIFont.SymbolStyle.None).y;
Thanks anyways ! xD