From 39932a667eea1b41b6865d3855853520089cd1d6 Mon Sep 17 00:00:00 2001 From: Ian G Date: Mon, 3 Nov 2014 15:48:07 -0800 Subject: [PATCH] adjust in viewWillLayoutSubviews first time out navigation bar is sized properly --- StoryboardXibController/StoryboardXibController.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/StoryboardXibController/StoryboardXibController.m b/StoryboardXibController/StoryboardXibController.m index bd8bfa3..2e92c28 100644 --- a/StoryboardXibController/StoryboardXibController.m +++ b/StoryboardXibController/StoryboardXibController.m @@ -119,6 +119,13 @@ - (void)viewDidAppear:(BOOL)animated [self updateContainedViewTopConstraint]; } +- (void)viewWillLayoutSubviews +{ + [super viewWillLayoutSubviews]; + + [self updateContainedViewTopConstraint]; +} + - (BOOL)checkContainedViewDidLoad { if (self.containedController.isViewLoaded)