【发布时间】:2012-01-30 08:14:49
【问题描述】:
我不想为形状为箭头的视图设置动画,我希望它从左到右、从左到右等等…
下面的这段代码不起作用,我猜我需要一个路径,但不知道如何在 UIView 块动画中做到这一点。
[UIView animateWithDuration:.5 delay:0 options:UIViewAnimationOptionRepeat animations:^{
controller.view.frame = frame1;
controller.view.frame = frame2;
} completion:^(BOOL finished) {
}];
【问题讨论】:
标签: ios cocoa-touch uiview uiviewanimation