开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜