【发布时间】:2011-10-28 07:05:56
【问题描述】:
我正在尝试使用 CABasicAnimation 自动重复我的图像旋转动画。我试图在网上搜索如何设置此类属性,但无法找到。 CA动画真的没有这样的属性吗?我知道您可以为 repeatCount 属性设置一些巨大的值(here),但是,为什么 UIView animateWithDuration 有一个选项 UIViewAnimationOptionRepeat 以及硬编码的值是什么?
【问题讨论】:
-
值为
1e50,在math.h。 -
在 XCode 中 ⌘-click 去定义一些东西。
标签: iphone objective-c animation repeat cabasicanimation