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

55 views Asked by At

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;
}
0

There are 0 answers