Is there a way of adjusting the screen brightness programmatically?

后端 未结 3 1732
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 10:28

I have an iPhone app for photographic purposes (kind of a lightbox). This app needs as much brightness as possible. Is there a way to change the screen brightness programmat

3条回答
  •  心在旅途
    2020-11-28 11:04

    It is possible, but your app will most likely get rejected from the App Store, because it uses a private API. A flashlight-app was rejected because it adjusted the screen brightness, so I wouldn't recommend it.

    In iOS 4.2, the iPad will have a screen brightness-adjuster in the multitasking-bar,

    (as mentioned by @coob) so you could tell your users to set the brightness there.


    What you could do, is to create a black overlay-view, and set it's alpha to more or less, according to how bright you want the screen to be. This won't actually make the screen less/more bright, but it will give the user an illusion of that.

提交回复
热议问题