I'd like to show the section header of my table view even when there is no object in my section.
None of these methods are called for my empty section:
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
EDIT : I found the answer.
I was sending 0 to numberOfSectionsInTableView when I got no object that's why thoses methods wasn't call.
So even when a section is empty, my header is shown
I found the answer.
I was sending 0 to numberOfSectionsInTableView when I got no object that's why thoses methods wasn't call.
So even when a section is empty, my header is shown
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With