Skip to content

Commit

Permalink
Add controller to stack immediately instead of after first appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrybak committed May 8, 2014
1 parent 5abef0a commit eb52e68
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ - (void)navigationController:(UINavigationController*)navigationController didSh
if (self.pushedController.onPush)
self.pushedController.onPush();

//Add it to our internal stack
[self.controllers push:self.pushedController];

//Reset the temp variable
self.pushedController = nil;
}
Expand All @@ -117,6 +114,7 @@ - (void)savePushController:(UIViewController*)viewController navigationBarHidden
self.pushedController.toolbarHidden = toolbarHidden;
self.pushedController.onPush = onPush;
self.pushedController.onPop = onPop;
[self.controllers push:self.pushedController];
}

- (void)setNavigationBarHidden:(BOOL)navigationBarHidden toolbarHidden:(BOOL)toolbarHidden animated:(BOOL)animated
Expand Down

0 comments on commit eb52e68

Please sign in to comment.