iOS-Slide-Menu
iOS-Slide-Menu copied to clipboard
ViewController & Slider move up when statusbar show
ViewController & Slider move up when Slider open in statusbar showing.
Sample code have same bug when statusbar show.
why your statusbar line is double?
hot spotpoint
this page will be help you https://developer.apple.com/library/ios/qa/qa1797/_index.html
I don't get it...
-
(void)moveHorizontallyToLocation:(CGFloat)location { CGRect rect = self.view.frame; UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation; Menu menu = (self.horizontalLocation >= 0 && location >= 0) ? MenuLeft : MenuRight;
if ((location > 0 && self.horizontalLocation <= 0) || (location < 0 && self.horizontalLocation >= 0)) { [self postNotificationWithName:SlideNavigationControllerDidReveal forMenu:(location > 0) ? MenuLeft : MenuRight]; }
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) { rect.origin.x = location; // rect.origin.y = 0; } else { if (UIInterfaceOrientationIsLandscape(orientation)) { rect.origin.x = 0; rect.origin.y = (orientation == UIInterfaceOrientationLandscapeRight) ? location : location_-1; } else { rect.origin.x = (orientation == UIInterfaceOrientationPortrait) ? location : location_-1; // rect.origin.y = 0; } }
self.view.frame = rect; [self updateMenuAnimation:menu]; }
comment rect.origin.y = 0
It's OK
I think what @Kernelzero is saying is that you need to make sure that your code is not being covered by the status bar, and has nicely provided the link to how to fix it. I (and judging by how many times I've seen this, even in apple's own apps) generally have a lot of issues with the status bar expanding (for when in call, recording audio, and hotspot). Does your issue with this library occur when you're not hotspotting?
ps: apple's developer site does not open without safari browser.
@Junyi1227 great! thank you.