SWRevealViewController icon indicating copy to clipboard operation
SWRevealViewController copied to clipboard

status bar overlap in rearVC in first swipe

Open ghost opened this issue 9 years ago • 4 comments

This code works fine if the menu is opened with the button then works but does not work if done swipe

  • (void) viewDidLayoutSubviews { if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) { self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque; if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) self.edgesForExtendedLayout = UIRectEdgeNone; // iOS 7 specific CGRect viewBounds = self.view.bounds; CGFloat topBarOffset = self.topLayoutGuide.length; viewBounds.origin.y = topBarOffset * -1; self.view.bounds = viewBounds; self.navigationController.navigationBar.translucent = NO; } }

ghost avatar Apr 12 '15 21:04 ghost

check out this link : http://iphonedev.tv/blog/2014/2/12/auto-layout-bug-with-the-top-layout-guide-for-xcode-5

kocyigityunus avatar Apr 22 '15 08:04 kocyigityunus

Same problem here, Xcode 6.3.2, so I think this is a SWRevealViewController bug.

guillaumealgis avatar Jun 03 '15 16:06 guillaumealgis

Is there an update on this? I'm having this issue. When I tap the revealButtonItem, it works, i.e., the status bar height is properly accommodated for. Otherwise, if I issue a pan gesture, the view of the "sw_rear" is 20 points too high and the status bar now overlaps my view. If the button is tapped once during execution, then any pan gestures performed after no longer have this problem on the rear view.

alexsmith84 avatar Jan 28 '16 21:01 alexsmith84

Same problem for me.

kishor010 avatar Aug 07 '17 09:08 kishor010