ios - Set minimum height of table view cell? -
i have uitableview,in table have created custom cell image & label.i have given label leading,trailing,top,bottom.i want set size of label increase according text happening.i have used uitableautomaticdimension & estimatedrowheight.now want set minimum height of cell equal height of image.now if text less in label height of image decreased.now want keep height cell minimum image height & increase when there more text.please how can it?
looking @ view shared suggest following constraints.
- top of uiimageview top of cell.
- left of uiimageview top left of cell.
- width , height constraints of uiimageview.
- bottom of uiimageview bottom of cell greater or equal to.
- right of uiimageview left of uilabel.
- top of uilabel top of cell.
- right of uilabel right of cell.
- bottom of uilabel bottom of cell.
adding these constraints should solve problems.
Comments
Post a Comment