iOS 问题。是否有基于构建时间的应用程序的框架
我需要在我正在构建的 iPad 应用程序中添加一些基于时间的效果。 UIView 类动画功能 beginAnimations/commitAnimations 正是我正在寻找的东西,但它仅限于 UIView 被视为可动画的特定属性。
理想情况下,我正在寻找一种解决方案,让我能够驱动一个基于时间的函数,该函数也许可以按照我在动画中指定的速率将消息发送到我自己选择的类。
具体来说,我有一个函数 - 我对 RenderMan 函数“smoothstep”的实现,它本质上是动画中常见的缓入缓出曲线。当评估曲线时,它采用 [0 - 1] 作为输入并输出 [0 - 1]。我想以我自己选择的速度在我自己选择的时间内驱动这个函数。
提前致谢。
-道格
I have the need for some time based effects in the iPad app I am building. The UIView class animation capability beginAnimations/commitAnimations is exactly the sort of thing I am looking for but it is restricted to specific properties of UIView deemed animatable.
Ideally, I am looking for a solution that lets me drive a time-based function that can perhaps send messages to a class of my own choosing at the rate I specify in the animation.
Specifically, I have a function - my implementation of the RenderMan function "smoothstep" which is essentially an ease-in ease-out curve common in animation. It takes [0 - 1] as input and outputs [0 - 1] as the curve is evaluated. I want to drive this function for a duration of my own choosing at rate of my own choosing.
Thanks in advance.
-Doug
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你看过 NSTimer 吗?您可以定义一个重复计时器,它将重复调用类上的方法。
Have you looked at NSTimer ? You can define a repeating timer that will call a method on your class repeatedly.