-1

Possible Duplicate:
Is there a way of adjusting the screen brightness programmatically?
iPhone: How can we programmatically change the brightness of the screen?

How can we change (Decrease and increase) Brightness of the iphone screen programmatically by touch events?

Cœur
  • 34,719
  • 24
  • 185
  • 251
Gopikrishna
  • 99
  • 1
  • 7

1 Answers1

1

A Float value of 0 - 1 can be used to do this, for example:

[[UIScreen mainScreen] setBrightness: 0.5f];
ElasticThoughts
  • 3,305
  • 7
  • 42
  • 57