Skip to content
Browse files

merges FlyingJalapeno@d4c9452

  • Loading branch information...
1 parent ae882ae commit 707e6d9b3528decad74aa0dd0a4bd2e4cf36e2f7 @steipete committed Aug 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 PSStackedView/PSStackedViewController.m
View
3 PSStackedView/PSStackedViewController.m
@@ -980,11 +980,14 @@ - (void)pushViewController:(UIViewController *)viewController fromViewController
PSSVLog(@"pushing with index %d on stack: %@ (animated: %d)", [self.viewControllers count], viewController, animated);
viewController.view.height = [self screenHeight];
+
+ [viewController view]; //trigger viewDidload to ensure we get stack width
// get predefined stack width; query topViewController if we have a UINavigationController
CGFloat stackWidth = viewController.stackWidth;
if (stackWidth == 0.f && [viewController isKindOfClass:[UINavigationController class]]) {
UIViewController *topVC = ((UINavigationController *)viewController).topViewController;
+ [topVC view]; //trigger viewDidload to ensure we get stack width
stackWidth = topVC.stackWidth;
}
if (stackWidth > 0.f) {

0 comments on commit 707e6d9

Please sign in to comment.
Something went wrong with that request. Please try again.