I am trying to rotate my object like shakes dice.
please suggest simplest way to implement it in my iphone application.
Any kind of sample code or documentation.
I am trying to rotate my object like shakes dice. please suggest simplest way
Share
If you want to do this without using OpenGL you can use a UIImageView and the set a series of animation images. By creating a series of images you can create a “rolling dice” effect. Here is an example of how to do this:
You can modify the creation and setup including the size, position, number of images, the duration, repeat count, etc as needed. I’ve used this feature of UIImageView to create simple animation effects and it works great!
Please let me know if you try this and if it works for your needs. Also, post any follow up questions.
Bart