diff --git a/Classes/MGSplitViewController.m b/Classes/MGSplitViewController.m index 09ffe17..9b337d2 100644 --- a/Classes/MGSplitViewController.m +++ b/Classes/MGSplitViewController.m @@ -241,7 +241,8 @@ - (CGSize)splitViewSizeForOrientation:(UIInterfaceOrientation)theOrientation float height = fullScreenRect.size.height; // Correct for orientation. - if (UIInterfaceOrientationIsLandscape(theOrientation)) { + //fix in ios8,with and height exchange error + if ([[[UIDevice currentDevice]systemVersion] floatValue] < 8.0 && UIInterfaceOrientationIsLandscape(theOrientation)) { width = height; height = fullScreenRect.size.width; }