UIWindow的使用
来源:互联网 发布:吉利知豆电动车官网 编辑:程序博客网 时间:2024/06/13 04:07
主要用途:
1、用作蒙版
2、用作手势View
UIWindow的创建和UIView不同,UIWindow一旦被创建他就会添加到整个界面上,但是默认是hidden的,创建时注意要把UIWindow设置成全局变量;谁的UIWindow的UIWindowLevel值越大,谁的UIWindow就在最上面;UIWindowLevel优先级相等的情况下,看谁后实例化了,谁后实例化谁先显示。
当前窗口只能有一个主窗口
@property(nonatomic) UIWindowLevel windowLevel; // default = 0.0
@property(nonatomic,readonly,getter=isKeyWindow) BOOL keyWindow;
- (void)becomeKeyWindow; // override point for subclass. Do not call directly
- (void)resignKeyWindow; // override point for subclass. Do not call directly
- (void)makeKeyWindow;
- (void)makeKeyAndVisible; // convenience. most apps call this to show the main window and also make it key. otherwise use view hidden property
资料:
http://blog.csdn.net/hello_hwc/article/details/50670079
http://blog.csdn.net/liangliang103377/article/details/45060209
- UIWindow的使用
- UIWindow的介绍和使用
- swift中UIWindow的使用
- UIWindow 使用
- 二十六,iOS UIWindow的简单使用
- 关于UIWindow,使用小记
- UIWindow使用介绍
- IOS的基本控件的使用-UIWindow对象
- UIWindow的基本使用,一进入界面需输入密码
- 【UI初级 连载三】--------UIWindow 和 UIView 的使用
- ios之UIWindow和UIScreen的使用集合
- UIWindow的学习笔记
- UIWindow的一点儿思考
- UIWindow的一点儿思考
- 对于UIWindow的认识
- UIWindow的一点儿思考
- UIWindow的一点儿思考
- UIWindow的一点儿思考
- windows 资源监视器
- JavaScript之原生拖放(HTML5脚本编程)
- Python3函数的参数
- Mysql命令大全(完整版)
- html 的相对定位与绝对定位
- UIWindow的使用
- Android View那点事(一)
- Linux下分区详解之—Parted
- C语言基础知识练习
- 接口 的使用 到底 有什么 益处?完全 解耦( decoupling)
- Android vector 标签 pathData 详解
- GAT项目新需求:保险管理增加查询统计-传日期参数问题
- 开发网址
- hls协议(最清晰的讲解)