iOS Question. Is There a Framework for Build Time Based Apps
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
Have you looked at NSTimer ? You can define a repeating timer that will call a method on your class repeatedly.
精彩评论