0

I create header with

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

and set it height with

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

I have one header and one section.

I create VC in code inherited from UITableViewController I use UITableViewStyleGrouped

but then I scroll down header is disappear

user3527777
  • 135
  • 1
  • 1
  • 8
  • you can check the same answer from here : https://stackoverflow.com/questions/17582818/uitableview-with-fixed-section-headers/50814836#50814836 – Burcu Kutluay Jun 12 '18 at 10:25

1 Answers1

1

You should use the Plain tableViewStyle. See here

    self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
Community
  • 1
  • 1
chrisblomm
  • 314
  • 1
  • 7