From 836cff5d260e385bbb031caab049bad955cc2a5d Mon Sep 17 00:00:00 2001 From: Cheolhee Han Date: Fri, 3 Feb 2012 16:05:00 +0900 Subject: [PATCH] Reducing the height when the VC is added to a UITabbarController. --- Classes/MGSplitViewController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/MGSplitViewController.m b/Classes/MGSplitViewController.m index 61b30a6..1585692 100644 --- a/Classes/MGSplitViewController.m +++ b/Classes/MGSplitViewController.m @@ -243,7 +243,9 @@ - (CGSize)splitViewSizeForOrientation:(UIInterfaceOrientation)theOrientation // Account for status bar, which always subtracts from the height (since it's always at the top of the screen). height -= statusBarHeight; - + if (self.tabBarController) { + height -= 49.0f; + } return CGSizeMake(width, height); }