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:
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
Post a Comment