0

我想知道谁来实现落块动画,他们在 What Pic 应用程序中的方式 https://itunes.apple.com/au/app/whats-pic-guess-word-hiding/id600716806?mt=8

任何帮助将不胜感激。

4

2 回答 2

2

如果你的意思是动画,当块落下并旋转时,你可以使用这样的变换属性UIView

CGAffineTransform transform = CGAffineTransformMakeTranslation(0, 200);
transform = CGAffineTransformRotate(transform, 20);
[UIView animateWithDuration:10
             animations:^{
                 view.transform = transform;
             }];

如果你想拥有完全相同的动画,你可以使用animateWithDuration:delay:options:animations:completion:为你的动画添加一些选项

于 2013-03-15T09:38:58.010 回答
-1

..or you can save your effort altogether and get a ready-made starter kit from others who did the same thing such as yourself

http://www.sellmyapplication.com/source-code/whats-the-pic-starter-kit/

于 2013-03-30T09:51:45.803 回答