iphone - Is it possible to vertically align text inside labels with a "large" frame -


in application have multiple tableviews custom cells. of text in cells spread out on between 2-4 lines height of label large enough contain content.

however on ipad screen larger , want text appear @ top left point of label, not in middle when use numberoflines property. know can horizontally align text, must possible align text top left also? or impossible.

screenshot:

enter image description here

its impossible align text in uilabel vertically. but, can dynamically change height of label using sizewithfont: method of nsstring, , set x , y want.

as alternative can use uitextfield. supports contentverticalalignment peoperty subclass of uicontrol. have set userinteractionenabled no prevent user typing text on it.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -