How do I fade my Core Animation application to a fullscreen black screen first like Front Row?
views:
122answers:
2
A:
here are a few fade effects:
http://www.informit.com/articles/article.aspx?p=1168314&seqNum=2
jspcal
2010-01-09 01:21:12
+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
2010-01-09 01:23:24
Thanks, that's just what I was looking for. Except you have a typo, it's CGDisplayFade()
DonnaLea
2010-01-09 04:04:22
D'oh - fixed, thanks.
gavinb
2010-01-09 09:33:18