Skip to content

Commit

Permalink
Merge pull request #720 from PatrickNLT/set-root-ios9
Browse files Browse the repository at this point in the history
[QuickDialogTableView] Set root only after data source and delegate are set
  • Loading branch information
escoz committed Nov 4, 2015
2 parents 1a5f7eb + c96daa3 commit 9947f43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quickdialog/QuickDialogTableView.m
Expand Up @@ -35,7 +35,6 @@ - (QuickDialogTableView *)initWithController:(QuickDialogController *)controller
self = [super initWithFrame:CGRectMake(0, 0, 0, 0) style:controller.root.grouped ? UITableViewStyleGrouped : UITableViewStylePlain];
if (self!=nil){
self.controller = controller;
self.root = _controller.root;
self.deselectRowWhenViewAppears = YES;

self.quickDialogDataSource = [[QuickDialogDataSource alloc] initForTableView:self];
Expand All @@ -44,6 +43,8 @@ - (QuickDialogTableView *)initWithController:(QuickDialogController *)controller
self.quickDialogTableDelegate = [[QuickDialogTableDelegate alloc] initForTableView:self];
self.delegate = self.quickDialogTableDelegate;

self.root = _controller.root;

self.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
}
return self;
Expand Down

0 comments on commit 9947f43

Please sign in to comment.