·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> app软件开发 >> IOS开发 >> 【读书笔记】UIWindow-WindowLevel

【读书笔记】UIWindow-WindowLevel

作者:佚名      IOS开发编辑:admin      更新时间:2022-07-23

WindowLevel是UIWindow的一个属性。系统定义的一共有3种。

UIKIT_EXTERN const UIWindowLevel UIWindowLevelNormal;
UIKIT_EXTERN const UIWindowLevel UIWindowLevelAlert;
UIKIT_EXTERN const UIWindowLevel UIWindowLevelStatusBar;

 

代码:

 

复制代码
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    NSLog(@"UIWindowLevelNormal=%f UIWindowLeveStatusBar=%f UIWindowLevelAlert=%f",UIWindowLevelNormal,UIWindowLevelStatusBar,UIWindowLevelAlert);
 
    
    return YES;
}
复制代码

 

输出结果:

 

2015-07-19 21:02:45.448 WindowLevelDemo[775:24283] UIWindowLevelNormal=0.000000 UIWindowLeveStatusBar=1000.000000 UIWindowLevelAlert=2000.000000

 

参考资料:《iOS开发进阶》-唐巧