Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Merge commit '5e786d0ebcebd6128e41c50022343ba2ffa803a7'
Browse files Browse the repository at this point in the history
  • Loading branch information
zwaldowski committed Dec 11, 2011
2 parents 76f36a3 + 5e786d0 commit 9d70d04
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions DCIntrospect/DCStatusBarOverlay.m
Expand Up @@ -19,8 +19,15 @@ - (id)init
{
if ((self = [super initWithFrame:CGRectZero]))
{
self.windowLevel = UIWindowLevelStatusBar + 1.0f;
self.frame = [[UIApplication sharedApplication] statusBarFrame];
self.windowLevel = UIWindowLevelStatusBar + 1.0f;
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
const CGFloat bar_size = 20;
if (UIInterfaceOrientationIsLandscape(orientation))
self.frame = CGRectMake(0, 0, screenHeight, bar_size);
else
self.frame = CGRectMake(0, 0, screenWidth, bar_size);
self.backgroundColor = [UIColor blackColor];

UIImageView *backgroundImageView = [[UIImageView alloc] initWithFrame:self.frame];
Expand Down

0 comments on commit 9d70d04

Please sign in to comment.