From 3f403f6202a89bcaa74ba19ab7d777f88d346dcc Mon Sep 17 00:00:00 2001 From: "Gaurav Khot (appicient)" Date: Tue, 8 Mar 2016 23:03:15 -0800 Subject: [PATCH] Fix to remove bar at the bottom of the frame of the MFSideMenu for devices with iOS version 7.0 or greater --- MFSideMenu/MFSideMenuContainerViewController.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MFSideMenu/MFSideMenuContainerViewController.m b/MFSideMenu/MFSideMenuContainerViewController.m index 70216e0..798ad74 100644 --- a/MFSideMenu/MFSideMenuContainerViewController.m +++ b/MFSideMenu/MFSideMenuContainerViewController.m @@ -418,6 +418,10 @@ - (void) setLeftSideMenuFrameToClosedPosition { leftFrame.size.width = self.leftMenuWidth; leftFrame.origin.x = (self.menuSlideAnimationEnabled) ? -1*leftFrame.size.width / self.menuSlideAnimationFactor : 0; leftFrame.origin.y = 0; + if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) { + CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame]; + leftFrame.size.height = leftFrame.size.height+statusBarFrame.size.height; + } [self.leftMenuViewController view].frame = leftFrame; [self.leftMenuViewController view].autoresizingMask = UIViewAutoresizingFlexibleRightMargin|UIViewAutoresizingFlexibleHeight; } @@ -791,4 +795,4 @@ - (CGFloat)animationDurationFromStartPosition:(CGFloat)startPosition toEndPositi return MIN(duration, self.menuAnimationMaxDuration); } -@end \ No newline at end of file +@end