Register section header classes for table views

This commit is contained in:
ismailgulek
2022-02-10 03:14:50 +03:00
parent 78145e5924
commit 8a5e197bf2
2 changed files with 8 additions and 0 deletions
@@ -17,6 +17,7 @@
#import <Contacts/Contacts.h>
#import "ContactsTableViewController.h"
#import "SectionHeaderView.h"
#import "UIViewController+RiotSearch.h"
@@ -95,6 +96,9 @@
self.contactsTableView.dataSource = contactsDataSource; // Note: dataSource may be nil here
[self.contactsTableView registerClass:ContactTableViewCell.class forCellReuseIdentifier:ContactTableViewCell.defaultReuseIdentifier];
[self.contactsTableView registerClass:SectionHeaderView.class
forHeaderFooterViewReuseIdentifier:SectionHeaderView.defaultReuseIdentifier];
// Hide line separators of empty cells
self.contactsTableView.tableFooterView = [[UIView alloc] init];