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!
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 "". , .
( ..), , Apple . , Settings.app , , API. jailbreak, , API. " ".
jailbreak
[[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
Source: https://habr.com/ru/post/1534086/More articles:Vagrant and installing packages in a shared folder - linuxнормально ли использовать loadOverlay() в перезагружаемом дополнении? - domJava minimax game on dots and boxes - javaSecret SSL socket connections in Java - javaIOS 7 auto brightness overrides app screen brightness setting - iosWhy is my iOS 7 app running at 100 percent CPU utilization after some time? - ios7Python - могу ли я обернуть присвоение атрибута без записи геттера/сеттера - pythonИспользовать существующую базу данных и таблицы с Sinatra и Datamapper? - rubyR is the fastest way to multiply matrix rows by vector rows - vectorIs the initialization method a built-in method in Ruby? - methodsAll Articles