如何使用 iPhone SDK 以编程方式更改屏幕亮度?
How can I change the brightness of the screen programmatically using iPhone SDK?
[[UIScreen mainScreen] setBrightness: yourvalue];
需要 iOS 5.0 或更高版本.yourvalue 是介于 0.0 和 1.0 之间的浮点数.
Requires iOS 5.0 or later. yourvalue is a float between 0.0 and 1.0.
这篇关于我们如何以编程方式改变 iPhone 屏幕的亮度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
如何通过点击动画 UIImageview 以显示全屏?How to animate a UIImageview to display fullscreen by tapping on it?(如何通过点击动画 UIImageview 以显示全屏?)
停止 segue 并显示警报To stop segue and show alert(停止 segue 并显示警报)
iOS 5 故事板,以编程方式确定路径iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以编程方式确定路径)
图标已经包含光泽效果Icon already includes gloss effects(图标已经包含光泽效果)
UIEdgeInsetsMake 是如何工作的?How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
UIProgressView 和自定义跟踪和进度图像(iOS 5 属性UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定义跟踪和进度图像(iOS 5 属性))