iphone - UILabel with dynamic height not working for same string in iOS -
i using below code in application dynamic height uilabel.
cgsize maximumlabelsize = cgsizemake(231, flt_max); cgsize expectedlabelsize = [labelstring sizewithfont:self.verblabel.font constrainedtosize:maximumlabelsize linebreakmode:self.verblabel.linebreakmode]; //adjust label the new height. cgrect newframe = self.verblabel.frame; newframe.size.height = expectedlabelsize.height; self.verblabel.frame = newframe; return newframe;
my labelstring if asked controversial public figure? ideas might he/she suggest? i'm able show whole string cut text. how can solve ... please me , let me know if doing wrong.
set numberoflines 0 allow number of lines.
label.numberoflines = 0;
Comments
Post a Comment