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