[iPhone] Darkening the screen like in an alert manually

Hi,
Is it possible to darken the screen manually? When an alert screen pops up, the background has a neat fade effect. Is it possible to use this effect without the alert screen?
Thanks for any help!

You can just use a basic animation to dim the screen by changing the view's alpha value. Although the alert pop-up does a glow around the alert.
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:.4];
view.alpha = .75;
[UIView commitAnimations];
http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhone OSProgrammingGuide/index.html
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/In troduction/Introduction.html

Similar Messages

Maybe you are looking for

  • Can you use the us store in the philippines

    can you use the us store in the philippines

  • Managed server throws error on start up

    Randomly, while starting a managed server, the following exception is logged in the log files. What does it mean, and how can I resolve this. I am using Weblogic Server 7.0 Sp1 with JDK 1.3.1_08. Exception Trace: The WebLogic Server did not start up

  • Adding non-local NAS to Windows Server 2012 R2 (Essentials Enabled) Server Listing

    Okay, I'm new at this, so I apologize in advance if this is a stupid question. In short: I'm running WS 2012 R2 (with the Essentials role installed) and the sever is connected to a network that also has a Linux-based NAS (a D-Link DNS-323) connected

  • How can I use iPad w/o syncing to iTunes?

    I'm having trouble installing iTunes.  I can go through the entire installation process (will ask my agreeance to the license, run quicktime, etc) and right before the final step I keep getting this message:    "Administrator has set policies against

  • Combine Chat Logs from Each User

    Hi there, Is anyone aware of an add-on or method for combining the chat logs of each user into ONE file? I very rarely leave chat windows open throughout the day, which means that if I have several conversations with one person, I end up with multipl