これはJASidePanelsのバグですが、これを行うことで問題を修正しました:JASidePanelsControllerに以下のコードを追加します_adjustCenterFrame
- (CGRect)_adjustCenterFrame {
CGRect frame = self.view.bounds;
if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0"))
{
if (![UIApplication sharedApplication].statusBarHidden) {
frame.origin.y = frame.origin.y + [UIApplication sharedApplication].statusBarFrame.size.height;
frame.size.height = frame.size.height - 20;
}
}
...
}
また_layoutSideContainers
追加で:
- (void)_layoutSideContainers:(BOOL)animate duration:(NSTimeInterval)duration {
CGRect leftFrame = self.view.bounds;
CGRect rightFrame = self.view.bounds;
if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0"))
{
if (![UIApplication sharedApplication].statusBarHidden) {
leftFrame.origin.y = leftFrame.origin.y + [UIApplication sharedApplication].statusBarFrame.size.height;
rightFrame.origin.y = rightFrame.origin.y + [UIApplication sharedApplication].statusBarFrame.size.height;
leftFrame.size.height = leftFrame.size.height - 20;
rightFrame.size.height = rightFrame.size.height - 20;
}
}
...
}
参照 :
https://github.com/hamin/JASidePanels/commit/81ae7514d275d9242ad268ab818441c8d786a63e
と
https://github.com/gotosleep/JASidePanels/pull/164