Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions MMDrawerController/MMDrawerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,8 @@ -(void)setShowsStatusBarBackgroundView:(BOOL)showsDummyStatusBar{
_showsStatusBarBackgroundView = showsDummyStatusBar;
CGRect frame = self.childControllerContainerView.frame;
if(_showsStatusBarBackgroundView){
frame.origin.y = 20;
frame.size.height = CGRectGetHeight(self.view.bounds)-20;
frame.origin.y = [UIApplication sharedApplication].statusBarFrame.size.height;
frame.size.height = CGRectGetHeight(self.view.bounds)-[UIApplication sharedApplication].statusBarFrame.size.height;
}
else {
frame.origin.y = 0;
Expand Down Expand Up @@ -1022,7 +1022,7 @@ -(UIView*)childControllerContainerView{

-(UIView*)dummyStatusBarView{
if(_dummyStatusBarView==nil){
_dummyStatusBarView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 20)];
_dummyStatusBarView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), [UIApplication sharedApplication].statusBarFrame.size.height)];
[_dummyStatusBarView setAutoresizingMask:UIViewAutoresizingFlexibleWidth];
[_dummyStatusBarView setBackgroundColor:self.statusBarViewBackgroundColor];
[_dummyStatusBarView setHidden:!_showsStatusBarBackgroundView];
Expand Down