I have a view controller with a table view. Tableview has a table view header and dynamic cells. I have added a UIView as table view header and it has multiple labels with dynamic heights. All works fine.
But the problem occurs when the size of the view(used as table view header) get extended because of the extra height of labels(cause it gets extended due to extra contents) used in the view.
As a result, the upper cells of table view gets hidden or overlapped by the header view. Can anybody help me with this scenario? All these done using storyboards.
You can't change table view header's height when you add it in the storyboard. Create the table view header programmatically and
return
UITableView.automaticDimension
inheightForHeaderInSection
method.