We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f5cea7 + 789050b commit d8a443cCopy full SHA for d8a443c
1 file changed
Classes/ViewController/KMAccordionTableViewController.m
@@ -117,7 +117,9 @@ - (id)sectionAtIndex:(NSInteger)index
117
118
- (void)setupTableView
119
{
120
- UINib *sectionHeaderNib = [UINib nibWithNibName:NSStringFromClass([KMSectionHeaderView class]) bundle:nil];
+ NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"KMAccordionTableViewController" ofType:@"bundle"];
121
+ NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
122
+ UINib *sectionHeaderNib = [UINib nibWithNibName:NSStringFromClass([KMSectionHeaderView class]) bundle:bundle];
123
[self.tableView registerNib:sectionHeaderNib forHeaderFooterViewReuseIdentifier:SectionHeaderViewIdentifier];
124
[self.tableView setBounces:NO];
125
[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
0 commit comments