diff --git a/Owncloud iOs Client/ExternalLibreries/MGSplitViewController/MGSplitViewController.m b/Owncloud iOs Client/ExternalLibreries/MGSplitViewController/MGSplitViewController.m index 32b1ad635d..b4a111b9e3 100755 --- a/Owncloud iOs Client/ExternalLibreries/MGSplitViewController/MGSplitViewController.m +++ b/Owncloud iOs Client/ExternalLibreries/MGSplitViewController/MGSplitViewController.m @@ -297,7 +297,7 @@ - (CGSize)splitViewSizeForOrientation:(UIInterfaceOrientation)theOrientation float height = fullScreenRect.size.height; // Correct for orientation. - if (UIInterfaceOrientationIsLandscape(theOrientation) && [[[UIDevice currentDevice] systemVersion] floatValue] < 8) { + if (UIInterfaceOrientationIsLandscape(theOrientation) && !IS_IOS8) { width = height; height = fullScreenRect.size.width; } @@ -765,8 +765,7 @@ - (IBAction)toggleSplitOrientation:(id)sender } -- (IBAction)toggleMasterBeforeDetail:(id)sender -{ +- (IBAction)toggleMasterBeforeDetail:(id)sender { BOOL showingMaster = [self isShowingMaster]; if (showingMaster) { if (_cornerViews) { @@ -785,19 +784,14 @@ - (IBAction)toggleMasterBeforeDetail:(id)sender } } -- (void) removeThePopover{ +- (void) removeThePopover { if (_hiddenPopoverController && _hiddenPopoverController.popoverVisible) { [_hiddenPopoverController dismissPopoverAnimated:NO]; } } -- (IBAction)toggleMasterView:(id)sender -{ - /*if (_hiddenPopoverController && _hiddenPopoverController.popoverVisible) { - [_hiddenPopoverController dismissPopoverAnimated:NO]; - }*/ - +- (IBAction)toggleMasterView:(id)sender { if (![self isShowingMaster]) { // We're about to show the master view. Ensure it's in place off-screen to be animated in. _reconfigurePopup = YES;