SWRevealViewController
SWRevealViewController copied to clipboard
status bar overlap in rearVC in first swipe
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; } }
check out this link : http://iphonedev.tv/blog/2014/2/12/auto-layout-bug-with-the-top-layout-guide-for-xcode-5
Same problem here, Xcode 6.3.2, so I think this is a SWRevealViewController bug.
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.
Same problem for me.