UIScreen Brightness Property

前端 未结 2 1635
栀梦
栀梦 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:15

    You will need to save the value you want to set yourself in your NSUserDefaults and call setBrightness: in your application delegate's applicationDidBecomeActive: method to restore the brightness.

提交回复
热议问题