How to fade my Core Animation application to a black screen first like Front Row?
How do I fade my Core Animation application to a fullsc开发者_开发问答reen black screen first like Front Row?
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:
- Quartz Display Services and Full-Screen Mode
If you invoke the fade synchronously, you can then start scheduling your CoreAnimation right after the fade has completed.
here are a few fade effects:
http://www.informit.com/articles/article.aspx?p=1168314&seqNum=2
精彩评论