如何以编程方式关闭自动亮度? [英] How to turn off Auto-Brightness programatically?

查看:110
本文介绍了如何以编程方式关闭自动亮度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法可以将自动亮度选项切换到iOS设备上的OFF位置,如果有,那是什么?

I was wondering if there is a method to toggle the "Auto-Brightness" option to the OFF position on iOS devices and if so, what is it?

谢谢!

推荐答案

当您进入应用程序并且它在UIScreen类中可用时,可以调整亮度 -

Brightness can be adjusted when you are inside the app and it is available inside the UIScreen class -

这是文档 -
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIScreen_Class/Reference/UIScreen.html#//apple_ref/occ / instp / UIScreen /亮度

但Apple的官方公共API不允许iOS应用访问设置应用中的常规设置。因此,您将无法更改设置应用内的切换按钮。

But Apple's official public APIs do not allow an iOS app to access General settings in the Settings app. So you will not be able to change the toggle button inside the settings app.

这篇关于如何以编程方式关闭自动亮度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆