- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section
{
[view vChangeBackgroundToCyan];
}
after
[self.delegateForTableController.tvDelegated insertSections:[NSIndexSet indexSetWithIndex:ip.section] withRowAnimation:UITableViewRowAnimationRight];
And how to call them?
The class returned by tableView:viewForHeaderInSection: needs to be a subclass of UITableViewHeaderFooterView for the tableView:willDisplayHeaderView:forSection: method to get called.
If the returned view is of some other type, the tableView:willDisplayHeaderView:forSection: method will not get called.
As far as I know - tableView:willDisplayHeaderView:forSection:
is being called only if you provide your own view in – tableView:viewForHeaderInSection:
.
I also hope your delegate reference is not nil
.
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