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

 

posted @ 2016-06-13 18:51  Kingdev  阅读(180)  评论(0编辑  收藏  举报