开发者

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

开发者 https://www.devze.com 2022-12-15 18:13 出处:网络
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 t

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

精彩评论

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

关注公众号