views:

122

answers:

2

How do I fade my Core Animation application to a fullscreen black screen first like Front Row?

A: 

here are a few fade effects:

http://www.informit.com/articles/article.aspx?p=1168314&seqNum=2

jspcal
+4  A: 

This isn't actually a CoreAnimation feature, but it is provided by Quartz. When switching to fullscreen mode, you can use the CGDisplayFade() function to get the system to do a smooth fade over some number of seconds. The Apple docs provide sample code on exactly how to do this:

If you invoke the fade synchronously, you can then start scheduling your CoreAnimation right after the fade has completed.

gavinb
Thanks, that's just what I was looking for. Except you have a typo, it's CGDisplayFade()
DonnaLea
D'oh - fixed, thanks.
gavinb