Ripple Effect on the touch event UIImageView

烂漫一生 提交于 2019-12-23 03:41:12

问题


I want to make a ripple effect on a UIImageView upon receiving the user touch. How can i do this. Opengl is a good option. But on which part of opengl should i need to concentrate. I am new to opengl.


回答1:


I'd suggest you check out cocos2d:

  • http://www.cocos2d-iphone.org/
  • https://github.com/cocos2d/cocos2d-iphone

It has a built-in ripple effect.

There is sample code in their source under /tests/EffectsTest.m



来源:https://stackoverflow.com/questions/6353403/ripple-effect-on-the-touch-event-uiimageview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!