Permalink
Browse files

Merge pull request #46 from dwarfland/master

Overlay fades to black rather than clear, causing odd color flash when using gray status bar style
  • Loading branch information...
2 parents 50c4645 + a788d1d commit b5d11dd3efb45becf652aef9e00202c3d55dd327 @myell0w committed May 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 MTStatusBarOverlay.m
@@ -367,7 +367,6 @@ - (id)initWithFrame:(CGRect)frame {
// Background-Image of the Content View
statusBarBackgroundImageView_ = [[UIImageView alloc] initWithFrame:backgroundView_.frame];
- statusBarBackgroundImageView_.backgroundColor = [UIColor blackColor];
statusBarBackgroundImageView_.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[self addSubviewToBackgroundView:statusBarBackgroundImageView_];
@@ -1161,11 +1160,12 @@ - (void)setStatusBarBackgroundForStyle:(UIStatusBarStyle)style {
} else {
self.statusBarBackgroundImageView.image = [self.defaultStatusBarImage stretchableImageWithLeftCapWidth:2.0f topCapHeight:0.0f];
}
+ statusBarBackgroundImageView_.backgroundColor = [UIColor clearColor];
}
-
// black status bar? -> no image
else {
self.statusBarBackgroundImageView.image = nil;
+ statusBarBackgroundImageView_.backgroundColor = [UIColor blackColor];
}
}

0 comments on commit b5d11dd

Please sign in to comment.