I’ve searched online and on stackoverflow but couldn’t find one good answer how to do it.
I’ve read about
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section`
but there’s nothing there that can help me.
The closest thing to an image background for the header there is:
headerView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"myBackground.png"]];
but it shows the picture as a pattern with no way controlling its size.
If you want to set the image as section header use: