Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Classes/MGSplitViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down