Skip to content

Commit

Permalink
Merge pull request #13 from plzen/fix_app_crash_ios9
Browse files Browse the repository at this point in the history
Fixed app crash with loading xib from bundle in iOS 9
  • Loading branch information
klevison committed Oct 27, 2015
2 parents 6f5cea7 + 789050b commit d8a443c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/ViewController/KMAccordionTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d8a443c

Please sign in to comment.