UIWindow
UIWindow *statusBarWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; statusBarWindow.windowLevel = UIWindowLevelStatusBar; UIWindow *statusBarW = ((UIWindow *)([[UIApplication sharedApplication] valueForKey:@"_statusBarWindow"])); NSLog(@"\nUIWindowLevelNormal=%.f \nUIWindowLevelAlert=%.f \nUIWindowLevelStatusBar=%.f \nstatusBarW=%.f \nstatusBarWindow=%.f", UIWindowLevelNormal, UIWindowLevelAlert, UIWindowLevelStatusBar, statusBarW.windowLevel, statusBarWindow.windowLevel);
控制器Log:
UIWindowLevelNormal=0 UIWindowLevelAlert=2000 UIWindowLevelStatusBar=1000 statusBarW=1000 statusBarWindow=1000