objective c - UITextView Adding extra space / lines -


i have non-editable uitextview object inside uitableviewcell appropriate constraints. loaded follows:

.h:

@property (weak, nonatomic) iboutlet uitextview *textcontenttext; @property (weak, nonatomic) iboutlet nslayoutconstraint *textcontenttextheight; 

.m:

-(void)configurefortextblock:(lessonblock *)block {      self.textcontenttext.text = block.sectioncontent;     self.textcontenttext.font = [uifont preferredfontfortextstyle:uifonttextstylebody];      cgsize sizethatfitstextview = [self.textcontenttext sizethatfits:self.textcontenttext.frame.size];     self.textcontenttextheight.constant = sizethatfitstextview.height;      [self.textcontenttext layoutifneeded];     [self.textcontenttext updateconstraints]; } 

the cell , uitextview resize fine (height only), there more lines of (blank) text dynamically added uitextview needed @ bottom.

can please?


Comments

Popular posts from this blog

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -