I'm trying to get a view above the status bar in ios9:
UIWindow *statusWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
statusWindow.windowLevel = UIWindowLevelStatusBar + 1;
statusWindow.hidden = NO;
statusWindow.backgroundColor = [UIColor colorWithWhite:0.0 alpha:0.7];
[statusWindow setRootViewController:self];
[statusWindow makeKeyAndVisible];
I only get a black screen with the status bar not covered. Any idea why it's not working ?