Skip to content

Commit

Permalink
adjust in viewWillLayoutSubviews
Browse files Browse the repository at this point in the history
first time out navigation bar is sized properly
  • Loading branch information
yoiang committed Nov 3, 2014
1 parent e44dc22 commit 39932a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions StoryboardXibController/StoryboardXibController.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ - (void)viewDidAppear:(BOOL)animated
[self updateContainedViewTopConstraint];
}

- (void)viewWillLayoutSubviews
{
[super viewWillLayoutSubviews];

[self updateContainedViewTopConstraint];
}

- (BOOL)checkContainedViewDidLoad
{
if (self.containedController.isViewLoaded)
Expand Down

1 comment on commit 39932a6

@yoiang
Copy link
Member Author

@yoiang yoiang commented on 39932a6 Nov 3, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix for incorrectly layout when transitioning in fix for issue #2

Please sign in to comment.