用UIApplication的idleTimerDisabled属性控制是否锁屏
来源:互联网 发布:win10打不开网络设置 编辑:程序博客网 时间:2024/05/16 11:47
idleTimerDisabled
A Boolean value that controls whether the idle timer is disabled for the application.
Discussion
The default value of this property is NO
. When most applications have no touches as user input for a short period, the system puts the device into a "sleep” state where the screen dims. This is done for the purposes of conserving power. However, applications that don't have user input except for the accelerometer—games, for instance—can, by setting this property to YES
, disable the “idle timer” to avert system sleep.
Important: You should set this property only if necessary and should be sure to reset it to NO
when the need no longer exists. Most applications should let the system turn off the screen when the idle timer elapses. This includes audio applications. With appropriate use of Audio Session Services, playback and recording proceed uninterrupted when the screen turns off. The only applications that should disable the idle timer are mapping applications, games, or similar programs with sporadic user interaction.
- 用UIApplication的idleTimerDisabled属性控制是否锁屏
- ios-day10-06(UIApplication的介绍。UIApplication的常用属性、使用UIApplication控制和管理状态栏)
- UIApplication的一些属性
- UIApplication的一些属性
- iOS: UIApplication的属性applicationState
- UIApplication常用的代理方法和属性
- ADF中控制EO属性是否可以更新的方法
- ADF中控制EO属性是否可以更新的方法
- 控制.NET自定义控件的属性是否显示在属性面板
- 控件visibility属性 控制是否可见
- 在Unity 5中如何控制检视面板上的属性是否显示?
- Unity 5中如何控制检视面板上的属性是否显示
- 用VC控制iis的属性
- 用javascript控制框架的src属性
- 怎么用Js控制disabled的属性
- 控制的字体属性
- 状态栏的隐藏主要有两种方法: 方法一:通过代码控制 @interface UIApplication(UIApplicationDeprecated) // Setting statusBarHi
- UIApplication 的深入学习
- 简单socket通信过程(TCP)
- Qt中translate、tr关系 与中文问题
- C++ 智能指针auto_ptr类
- Windows 7 安装VS2008 SP1 失败
- 20个开源项目托管站点推荐
- 用UIApplication的idleTimerDisabled属性控制是否锁屏
- 24点游戏
- 让Struts2 在NetBeans 6中安家——在 NetBeans 6 中使用 Struts2
- 算法<灵魂>
- 下一代网络技术思考题总结
- win 7把快捷方式加入到“发送到”
- 设置vim语法高亮显示和自动缩进
- 你不可不知的Mango — 开发者篇(1) .
- MINI2440 按键输入子系统 驱动及测试代码分析