Notification of the end of implicit animations

  • I have a CATransaction which batches changes to a bunch of properties
    for several layers. Is there any way of setting a callback to notify
    the completion of the implicit animations which happen after comitting?

    Layton
  • Thats something I've been looking for too. Have had no luck finding
    any solution though. Looks as though CAAnimation is the only class to
    support this. Would be very pleased if there was some other way
    though....

    On 12/12/2007, at 10:47 AM, Layton Duncan wrote:

    > I have a CATransaction which batches changes to a bunch of
    > properties for several layers. Is there any way of setting a
    > callback to notify the completion of the implicit animations which
    > happen after comitting?
    >
    > Layton
  • Or alternatively a way to queue transactions, so that the next doesn't
    start until the previous has completed?

    On 12/12/2007, at 1:01 PM, Nik Youdale wrote:

    > Thats something I've been looking for too. Have had no luck finding
    > any solution though. Looks as though CAAnimation is the only class
    > to support this. Would be very pleased if there was some other way
    > though....
    >
    > On 12/12/2007, at 10:47 AM, Layton Duncan wrote:
    >
    >> I have a CATransaction which batches changes to a bunch of
    >> properties for several layers. Is there any way of setting a
    >> callback to notify the completion of the implicit animations which
    >> happen after comitting?
    >>
    >> Layton
    >
    >
  • as you've already discovered. CAAnimationGroup is probably the only
    way you're going to get CA to give you this information directly. (a
    notification that animation is done)

    You can 'chain' animations using groups by just delaying the start
    time the length of the animation you want it to follow.

    You could experiment with setting an NSTimer that would fire at the
    end of the implied animation.. but that may not be as precise

    On Dec 11, 2007, at 8:16 PM, Layton Duncan wrote:

    > Or alternatively a way to queue transactions, so that the next
    > doesn't start until the previous has completed?
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today