meetpd meetpd - 1 year ago 264
iOS Question

iPhone: How can we programmatically change the brightness of the screen?

How can I change the brightness of the screen programtically using iPhone SDK?

Please let me know.


Answer Source
[[UIScreen mainScreen] setBrightness: yourvalue];

Requires iOS 5.0 or later. yourvalue is a float between 0.0 and 1.0.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download