I've seen a lot of iPhone apps that will dim the screen with an activity indicator when it's updating or downloading something to let the user know it's busy. I know how to do the activity indicator but how do I go about doing the dimming? Please post example code if you can.
+7
A:
They don't actually dim it, Apple won't allow apps to adjust the screen brightness. They just put a black, semitransparent image over the screen, which has a similar effect.
Edit:
Jailbroken applications can adjust the screen brightness, and there is an API to do it, however Apple will not approve of any application that changes the screen brightness.
Malfist
2009-05-27 16:17:23
To clarify, you should use a separate, semitransparent black view rather than altering the drawing of the main view(s). This will be composited cheaply in the GPU.
Ahruman
2009-05-27 18:12:23
+1
A:
Ok, the way I did this was too create another view and set the opacity very low. Then I add this view as a subview.
Xcoder
2009-05-28 14:52:26