Home > Mobile >  Ios tableviewcell adaptive line height
Ios tableviewcell adaptive line height

Time:10-06

Label xib constraints, constraints on the left and right sides, only call self layoutifneeded after obtaining the label height is wrong, why

CodePudding user response:

This is no time and with xib and,

CodePudding user response:

Don't have to write count themselves highly constraints automatically ADAPTS to the cell height
The self. The tableView. EstimatedRowHeight=44;//that height, literally will write according to the height of you write good discipline yourself to change
You add label constraints under the constraints of existing a distance greater than or equal to 10 under constraint

CodePudding user response:

About constraints on only? Is not constant height.
  •  Tags:  
  • iOS
  • Related