tags:

views:

114

answers:

1

Hi Every One,

i am doing one application in iPad and Iphone , i want to make on slider control to change the brightness of the screen as per the slider value

can any one help me to solve my problem

Thanks in advance...

+1  A: 

You can't do this with public APIs. You could put an overlay to make the screen darker, but you can't adjust the hardware brightness.

jtbandes
thanks for reply buthow to put the layer and make it darker cna you provide me that code...........
kunal patel
Just put a view over everything, set usserInteractionEnabled=NO and adjust the alpha.
jtbandes
keep in mind that popovers and other views may still get on top of your overlay view
Jason