You can only use UITableViewAutomaticDimension for the footer / header height, and only if you implement:
- tableView:titleForHeaderInSection:
If you implement:
- tableView:viewForHeaderInSection:
it will not work. UITableViewAutomaticDimension not intended to set row height. Use rowHeight and specify your value or implement:
- tableView:heightForRowAtIndexPath:
Raffal
source share