Graphics Reference
In-Depth Information
value when its duration has completed, which gives predictable, yet seemingly sporadic,
behavior. Keeping all the durations the same makes them wait the full duration before
they snap back. If you don't want them to snap back, you need to explicitly set their
values when the animation finishes, which we previously discussed in the section, “Using
CABasicAnimation.”
Summary
Basic animation is powerful. You have a lot of flexibility in the way you can achieve your
application animation goals. Often you won't need to go beyond what is provided for you
in basic animation. Keep it simple. If all you need is the animator proxy, use it. If all you
need is to set a layer property, call that property's set method and let Core Animation
handle the rest. If you need to have more flexibility over the animation parameters, use a
CABasicAnimation object and set all the animation properties yourself. Just remember that
probably more often than not, you only need basic animation.
 
Search WWH ::




Custom Search