UIScreen Brightness Property

前端 未结 2 1636
栀梦
栀梦 2020-12-20 20:32

At the moment I\'m trying to create an application to adjust the device\'s brightness. In iOS5, there is the new brightness property for mainScreen that allows you to set th

2条回答
  •  难免孤独
    2020-12-20 21:13

    It sets the brightness for the device on iPad, and iPhone, just like in the Settings. It changes the brightness even when the app closes, it is kind of annoying. You have to reset it back to default programmatically in the appropriate method. I just created a tracing table app, Lite Box, and noticed it does not go back to the initial setting, even when app is force closed. You have to reopen app....set back to default, or go to your Settings and change it back.

提交回复
热议问题