UITableview dynamic header height
Jul 15, 2019
Here we are going to see how to implement dynamic header height for a UITableview header based on the content of a UILabel.
Step 1: Set the section header height as UITableView.automaticDimension.
Step 2: In estimated height for header delegate assign an estimated value.
Step 3: In view for header delegate add a UILabel and apply constraints relative to the returning UIView. No frames are required for the returning UIView and the UILabel.
For queries please feel free to reach me at pratheesh_db@hotmail.com
Related: