How can I change the brightness of the screen programmatically using iPhone SDK?
UPDATE: For Swift 3
UIScreen.main.brightness = YourBrightnessValue
Here's the swift answer to perform this
UIScreen.mainScreen().brightness = YourBrightnessValue
YourBrightnessValue is a float between 0.0 and 1.0
0.0
1.0