How to set UIScreen Brightness Using UISlider in iOS4 from Setting.bundle

后端 未结 1 1054
耶瑟儿~
耶瑟儿~ 2021-01-24 05:33

I am working one Feature of setting Brightness of mainscreen i search lots of googling got one code.

UISlider *slider = (UISlider *)sender;
float fBrightness = s         


        
相关标签:
1条回答
  • 2021-01-24 06:08

    yeah you can do that by adding a blackView on your view and change its alpha based on the slider value .. it will looks like you are changing the brightness.

    0 讨论(0)
提交回复
热议问题