ios - Custom Cell not resizing UILabel's -


i'm designing custom cell on storyboard , it's not resizing labels according text's size. i'm using code:

- (void)awakefromnib {     titlelabel.linebreakmode = nslinebreakbywordwrapping;     titlelabel.numberoflines = 0;     [titlelabel sizetofit];     //[titlelabel setbackgroundcolor:[uicolor graycolor]]; -- put code here sure awake nib working } 

should implement else?

regards!

you should call sizetofit in layoutsubviews method.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -