Permalink
Browse files

More stack navigation flow

  Instead of continually adding to the end this illustrates adding
  a view controller next to the current view controller.
  • Loading branch information...
1 parent f385277 commit 6eb0a21cc042838380be55b34cb1b2a785db745f @burtlo burtlo committed Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ExampleStoryboard/PSStackedStoryboardExample/PSViewController.m
@@ -42,7 +42,7 @@ - (void)pushViewControllerWithColor:(UIColor *)color {
[[viewController view] setBackgroundColor:color];
[viewController setShowBackButton:YES];
- [[self stackController] pushViewController:viewController animated:YES];
+ [[self stackController] pushViewController:viewController fromViewController:self animated:YES];
}

0 comments on commit 6eb0a21

Please sign in to comment.