-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
  • 37,241
  • 25
  • 195
  • 267
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,417
  • 8
  • 43
  • 58