Skip to content

Commit

Permalink
Merge pull request #1 from soleares/master
Browse files Browse the repository at this point in the history
Moved didMoveToParentViewController inside of completion block
  • Loading branch information
gresrun committed Feb 15, 2012
2 parents f9f283d + b485143 commit f17f2f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GHSidebarNav/GHRevealViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ - (void)setSidebarViewController:(UIViewController *)svc {
completion:^(BOOL finished){
self.view.userInteractionEnabled = YES;
[sidebarViewController removeFromParentViewController];
[svc didMoveToParentViewController:self];
sidebarViewController = svc;
}
];
[sidebarViewController didMoveToParentViewController:self];
}
}

Expand All @@ -84,10 +84,10 @@ - (void)setContentViewController:(UIViewController *)cvc {
completion:^(BOOL finished){
self.view.userInteractionEnabled = YES;
[contentViewController removeFromParentViewController];
[cvc didMoveToParentViewController:self];
contentViewController = cvc;
}
];
[contentViewController didMoveToParentViewController:self];
}
}

Expand Down

0 comments on commit f17f2f9

Please sign in to comment.