1

iOS UIScreen 具有亮度属性。将其设置为不同的值会更新屏幕亮度。但是在锁定/解锁后屏幕亮度会恢复到 iOS 设置中设置的亮度。

我必须打电话来保存设置吗?有同步通话之类的吗?

4

1 回答 1

1

Applications can't make device (system) wide settings changes. That would violate the application "sandbox" philosophy.

The best you can do is have the app delegate detect when your application comes back into the foreground (after unlocking the phone) and then reset the screen brightness just for your app.

于 2012-04-24T15:06:10.883 回答