0

Is it possible to adjust the new section header top padding property for table views per section? You can adjust it for all sections like this, but I would like to have some sections be 0 and other sections the default padding in a table view.

self.tableView.sectionHeaderTopPadding = 0;
Berry Blue
  • 15,330
  • 18
  • 62
  • 113

1 Answers1

-1

You can use heightForHeaderInSection delegate method:

Documentation: https://developer.apple.com/documentation/uikit/uitableviewdelegate/1614855-tableview

Eduardo Santi
  • 425
  • 1
  • 4
  • 13