Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Fixed dimming window frame being invalid when launching in landscape …
Browse files Browse the repository at this point in the history
…orientation on iOS 8 SDK
  • Loading branch information
swisspol committed Oct 9, 2014
1 parent ccd21a6 commit 0e4107f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ - (BOOL) application:(UIApplication*)application didFinishLaunchingWithOptions:(
[self.window makeKeyAndVisible];

// Initialize dimming window
_dimmingWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
_dimmingWindow = [[UIWindow alloc] initWithFrame:([UIScreen instancesRespondToSelector:@selector(nativeBounds)] ? [[UIScreen mainScreen] nativeBounds] : [[UIScreen mainScreen] bounds])];
_dimmingWindow.userInteractionEnabled = NO;
_dimmingWindow.windowLevel = UIWindowLevelStatusBar;
_dimmingWindow.backgroundColor = [UIColor blackColor];
Expand Down

0 comments on commit 0e4107f

Please sign in to comment.