Is there a way of adjusting the screen brightness programmatically?

后端 未结 3 1733
没有蜡笔的小新
没有蜡笔的小新 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 10:56

    Edit: iOS 5 now includes a screen brightness API.

    [[UIScreen mainScreen] setBrightness:0.5];
    

    Previous answer:

    No, this capability is not exposed via public APIS.

    Edit: Note that a future possible iOS release may or may not have screen brightness on the multitasking bar on one particular iDevice.

提交回复
热议问题