I am trying to vertically align the text in the UILabel view of my app. The problem is that I want the text to be vertically aligned to the top and the size of the label to
You can do it as follows.......
Set your label's numberOfLines property 0 from IB
numberOfLines
Set your label's lineBreakMode as UILineBreakModeWordWrap (very very important)
lineBreakMode
UILineBreakModeWordWrap
now whatever you set on the label just append few @"\n" to it..... ex.-
[yourTextLabel setText:@"myLabel\n\n\n\n\n"];