How to automatically turn off auto brightness?

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

Thank!

+2
source share
3 answers

The brightness can be adjusted when you are inside the application, and it is available in the UIScreen class -

Here's the documentation - http://developer.apple.com/library/ios/#documentation/uikit/reference/UIScreen_Class/Reference/UIScreen.html#//apple_ref/occ/instp/UIScreen/brightness

API Apple Apple iOS "". , .

+6

( ..), , Apple . , Settings.app , , API. jailbreak, , API. " ".

+6

[[UIScreen mainScreen] setBrightness: 1.0];

is the way to go. Yes, you can do it programmatically. Just pass a value from 0.0 to 1.0, and you can do it. It really is according to the apple, and you will not run into any problem.

https://discussions.apple.com/thread/2009141?tstart=0

-1
source

Source: https://habr.com/ru/post/1534086/


All Articles