Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix iOS 6 layout (issue #69) #75

Open
wants to merge 1 commit into from

4 participants

@sam899

Fixes the issues noted in discussions of issue #69 with layout of view controllers in iOS 6

@cherukkayi

Try this,

#if __IPHONE_OS_VERSION_MAX_ALLOWED > 6000
[window setRootViewController:splitViewController];
#else
[window addSubview:splitViewController.view];
#endif

in - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions. :)

It works for me. :)

@niveus

Thanks Sam. That worked for me too

@Jeswang

Worked for me too, but didn't get the reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 20, 2012
  1. @sam899

    Fix iOS 6 layout (issue #69)

    sam899 authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  Classes/MGSplitViewController.m
View
3  Classes/MGSplitViewController.m
@@ -142,6 +142,9 @@ - (void)setup
_dividerView.splitViewController = self;
_dividerView.backgroundColor = MG_DEFAULT_CORNER_COLOR;
_dividerStyle = MGSplitViewDividerStyleThin;
+
+ // Fix for iOS 6 layout issue
+ self.view.autoresizesSubviews = NO;
}
Something went wrong with that request. Please try again.