MFSideMenu
MFSideMenu copied to clipboard
Side Menu Height is cut off on iPhone 6
For some reason the side menu doesnt expand 100% the heigh on iPhone 6 simulator. Is there something I need to do? The menu is being cut off as it seems like there is a fixed height or something on it. It is also being pushed up on first view as you can see in the status bar.
I've found a quick solution. This is not good solution but it works.
Inside the function called "setLeftSideMenuFrameToClosedPosition", replace line below
CGRect leftFrame = [self.leftMenuViewController view].frame;
to the code below.
CGRect leftFrame = [self.centerViewController view].frame;
I'm not sure the detail but the rect value of leftMenuViewController detected automatically doesn't work well on devices newer than 5s such iPhone 6, 6 Plus and the other newers. But the rect value of centerViewController detected works well on them.
Why would you consider this a bad solution?
Because basically leftFrame and centerView are not same stuff even the size both calculated are same.
That actually works very well, no complaints here. Probably should update the code on here with that and the right menu. My center content is always the size of the screen though.
I also found that side menu doesnt expand 100% the heigh on iPhone 6 simulator with the issue is the view.size.height less 20 pix
in function "- (void)setCenterViewController:(UIViewController *)centerViewController"
replace : [((UIViewController *)_centerViewController) view].frame = (CGRect){.origin = origin, .size=centerViewController.view.frame.size}; with : [((UIViewController *)_centerViewController) view].frame = self.leftMenuViewController.view.frame;
can solve this!