码迷,mamicode.com
首页 > Windows程序 > 详细

什么是KeyWindow

时间:2015-01-26 21:10:24      阅读:438      评论:0      收藏:0      [点我收藏+]

标签:keywindow   什么是keywindow   uiwindowlevel   

keyWindow : BOOL 类型,只读,用于判断是否是当前应用的 key window (key window 是指可接收到键盘输入及其他非触摸事件的 UIWindow,一次只能有一个 key window)

const UIWindowLevel UIWindowLevelNormal;      // 默认等级
const UIWindowLevel UIWindowLevelAlert;       // UIAlertView 的等级
const UIWindowLevel UIWindowLevelStatusBar;   // 状态栏的等级
typedef CGFloat UIWindowLevel;

UIWindowLevelNormal:0.000000
UIWindowLevelAlert:2000.000000
UIWindowLevelStatusBar:1000.000000

Level高的Window现在在前面

如果两个Level相同,调用方法makeKeyAndVisible的window被显示出来

什么是KeyWindow

标签:keywindow   什么是keywindow   uiwindowlevel   

原文地址:http://blog.csdn.net/dengbin9009/article/details/43156167

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!