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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -