1

how to change the background color of header in UITableView. But it should only for on showing headers. I implemented the following delegate

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

But it gets applied for all the rows.like i have A and its content then E and its content.But there is a long gap between A and E.

1
  • what do you men with "showing headers" Commented Sep 18, 2012 at 10:10

1 Answer 1

0

If you are talking about the UIvew for the Header of the table view which appears at the top of th stable view and does not scroll with the table cells you need to create UIVIew and set its background then appley this view as tableviewHeader property of the tableview

 self.tableView.tableHeaderView = [[UIView alloc] init];...... 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.