diff --git a/Classes/ViewController/KMAccordionTableViewController.m b/Classes/ViewController/KMAccordionTableViewController.m index 1a71259..4a0c016 100755 --- a/Classes/ViewController/KMAccordionTableViewController.m +++ b/Classes/ViewController/KMAccordionTableViewController.m @@ -117,7 +117,9 @@ - (id)sectionAtIndex:(NSInteger)index - (void)setupTableView { - UINib *sectionHeaderNib = [UINib nibWithNibName:NSStringFromClass([KMSectionHeaderView class]) bundle:nil]; + NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"KMAccordionTableViewController" ofType:@"bundle"]; + NSBundle *bundle = [NSBundle bundleWithPath:bundlePath]; + UINib *sectionHeaderNib = [UINib nibWithNibName:NSStringFromClass([KMSectionHeaderView class]) bundle:bundle]; [self.tableView registerNib:sectionHeaderNib forHeaderFooterViewReuseIdentifier:SectionHeaderViewIdentifier]; [self.tableView setBounces:NO]; [self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];