Can we set a UIViewControllers view as a section Headerview in a UITableViewController?

StackOverflow https://stackoverflow.com/questions/20798107

  •  21-09-2022
  •  | 
  •  

Question

Can we set a UIViewControllers view as a section Headerview in a UITableViewController.

Like,

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
CellHeader *cellHeader  = [[CellHeader alloc] initWithNibName:@"CellHeader" bundle:[NSBundle mainBundle]];
return cellHeader.view;
}

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top