0

Possible Duplicate:
Change Backlight Brightness on iPhone Programmatically

How can i adjust brightness in my application in xcode 4 with a UISlider? I can't find any modern code on how to access it.

Community
  • 1
  • 1
Forever a noob
  • 689
  • 1
  • 9
  • 16

1 Answers1

1

There is no public API to reduce overall screen's brightness as found under Brightness setting. However if your intent is to just reduce the brightness of you app, you can change the opacity of the view.

Vig
  • 1,532
  • 1
  • 12
  • 28
  • http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html view.alpha=<0 to 1.0> or in your case view.alpha=slider.value will change the alpha of the view – Vig Jan 31 '12 at 19:50