Quote:
Originally Posted by Domele
Those methods were only introduced in iOS 5.0. There is no way to truly adjust the screen brightness pre iOS5. The only way is to artificially do it by layering a UIView object with a black background and lowering the opacity.
|
Domele, you are absolutely right. These methods are only present in iOS 5 anybody using a previous iOS version should check for the presence of this method by using:
if([[UIScreen mainScreen] respondsToSelector:@selector(setBrightness

])
[[UIScreen mainScreen]setBrightness:fBrightness];