Restore Backlight To Previous Level, iPhone

烈酒焚心 提交于 2019-12-03 10:06:31

Discovered the answer. It was a really basic error... silly mistake. I had:

- (void)applicationWillTerminate

in ViewController.m rather than AppDelegate.m

It now works perfectly.

I hope this helps anyone out there with a similar problem,

Stu

To controll the brightness within the app is an interesting idea. However, using this string will be a cause of rejection. (See the link.)

Well, ... I don't know how to restore the level after the user exits. Therefore, let me introduce two APIs to you. They are the way on Mac OS X.

CFPreferencesSetAppValue() and CFPreferencesAppSynchronize()

If you solve the problem, please write down the correct code for the other developers, include me. ;-)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!