IOS layout issue -
if i'm right, in ios, don't have layout in android. i'm new ios. suppose have 2 label, 1 on top of other. possible make label goes down. went through widgets in ios. i've not seen linear layout
i suggest first go through getting started guide ios.
in case need set size of uilabel dynamically can using below code:
cgsize maximumlabelsize = cgsizemake(296,9999); cgsize expectedlabelsize = [yourstring sizewithfont:yourlabel.font constrainedtosize:maximumlabelsize linebreakmode:yourlabel.linebreakmode]; //adjust label the new height. cgrect newframe = yourlabel.frame; newframe.size.height = expectedlabelsize.height; yourlabel.frame = newframe;
Comments
Post a Comment