iOS-Slide-Menu icon indicating copy to clipboard operation
iOS-Slide-Menu copied to clipboard

ViewController & Slider move up when statusbar show

Open Junyi1227 opened this issue 9 years ago • 8 comments

ViewController & Slider move up when Slider open in statusbar showing. Sample code have same bug when statusbar show. s__5767252

Junyi1227 avatar Jan 07 '16 03:01 Junyi1227

why your statusbar line is double?

Kernelzero avatar Jan 07 '16 04:01 Kernelzero

hot spotpoint

Junyi1227 avatar Jan 07 '16 04:01 Junyi1227

this page will be help you https://developer.apple.com/library/ios/qa/qa1797/_index.html

Kernelzero avatar Jan 07 '16 06:01 Kernelzero

I don't get it...

Junyi1227 avatar Jan 07 '16 07:01 Junyi1227

  • (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

Junyi1227 avatar Jan 07 '16 07:01 Junyi1227

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?

SCLDev avatar Feb 26 '16 00:02 SCLDev

ps: apple's developer site does not open without safari browser.

Kernelzero avatar Mar 02 '16 08:03 Kernelzero

@Junyi1227 great! thank you.

xjuni0r87 avatar May 13 '16 07:05 xjuni0r87