Infinite Possibilities
Infinite Possibilities

Reputation: 7476

UIImage animation

Maybe is there a way to do animation only on one image? So if I have an UIImage and I want to animate it like a wave. Is this possible? And if yes, can you give me some examples or a link to start or something like this? (I used google but didn't find any good start link...)

Upvotes: 0

Views: 896

Answers (2)

curv
curv

Reputation: 3854

Yes - you may want to look into cocos2d - http://www.cocos2d-iphone.org

or OpenGL ES as mentioned above

or Quartz

It all depends on what this 'Wave' effect needs to look like, if it's what i think, you couldn't achieve that by using Core Animation, you would need to look in to these suggestions.

Upvotes: 0

Sam
Sam

Reputation: 3659

OpenGL ES is another possibility. Apple provide all the code to set up a rendering context.

From there you just need to get your image into a texture, define some vertices (more than just four), and move each vertex on a sine wave.

Upvotes: 1

Related Questions