开发者

iPhone animaion, how to flip a coin (2 UIImageview)?

开发者 https://www.devze.com 2022-12-28 20:38 出处:网络
Assume there are 2 UIImageview s, the front and back images of a coin. How to animate the 2 UIImageviews开发者_Python百科 such that the face and the back is flipping (spinning) continuously? Thanks!Yo

Assume there are 2 UIImageview s, the front and back images of a coin. How to animate the 2 UIImageviews开发者_Python百科 such that the face and the back is flipping (spinning) continuously? Thanks!


You're probably better off with OpenGL for this. But instead of two images from faces of a coin, if you're using Core Animation, you might think about animating one view from individual frames, where you have "snapshots" of a picture of a single coin in various stages of a coin flip.

0

精彩评论

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