elementsense
elementsense

Reputation: 1540

How to use an background image for the section header in the UITableViewController?

HI

I have a UITableViewController where I also use the section header.

Now is there any chance to use an image as background for the section header ?

Thanks

Upvotes: 0

Views: 364

Answers (1)

eemceebee
eemceebee

Reputation: 2666

You may wanna look at this :

- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

it returns the view that shows the header, here you can draw your background image as you wish.

Upvotes: 1

Related Questions