UIView “suck” animation

后端 未结 3 614
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-30 05:29

I\'d like to use the UIView \"sucking\" transition (view is \"sucked\" into a point) referenced here:

http://iphonedevwiki.net/index.php/UIViewAnimationState#Using_s

相关标签:
3条回答
  • 2020-12-30 05:52

    have you checkked out the cocos2d framework. it's an objective c wrapper for openGL and it's done really well. you can check out their demo video which shows all the transition types that the library supports.

    0 讨论(0)
  • 2020-12-30 06:01

    Please have a look at my project at git://github.com/rmd6502/Genie.git - it's very slow right now, but improvements are forthcoming.

    0 讨论(0)
  • 2020-12-30 06:11

    As long as Apple doesn't publicly document the effect, and you want to avoid the risk of being rejected for using private API's you'll have to roll your own.

    A suggestion to start working on this would be using OpenGL ES shaders.

    The following blog post includes a demo Quartz Composer patch to create the Genie effect as seen in OS X and iOS: http://www.aderstedtsoftware.com/users/erik/weblog/c7cb9/

    A good start for your OpenGL ES shader would be to use the code in the Genie Filter in this QuartzComposer file. The code can almost be copied to a shader for OpenGL as is. The most work would probably be integrating OpenGL in your application: rendering the right view to a OpenGL texture and overlaying OpenGL over your application to perform the animation based on your shader.

    0 讨论(0)
提交回复
热议问题