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?

enter image description here

looking @ view shared suggest following constraints.

  1. top of uiimageview top of cell.
  2. left of uiimageview top left of cell.
  3. width , height constraints of uiimageview.
  4. bottom of uiimageview bottom of cell greater or equal to.
  5. right of uiimageview left of uilabel.
  6. top of uilabel top of cell.
  7. right of uilabel right of cell.
  8. bottom of uilabel bottom of cell.

adding these constraints should solve problems.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -