Group animation doesn't call delegate when finished

Discussion in 'iOS Programming' started by Nraygun, May 3, 2010.

  1. Nraygun macrumors newbie

    Joined:
    May 9, 2005
    #1
    I'm using a series of animations to move a "monster" on the screen.

    The first two animations work fine - they seem to call the "animationDidStop" routine at their conclusion to call the next animation.

    The last animation is a group animation that moves, rotates, and scales the image at the same time. I set it's delegate to be "self" figuring it would use the existing "animationDidStop" routine like the other two. I even added an NSLog call to see what string is being passed.

    This last group animation doesn't seem to use the "animationDidStop" routine like the other two. It does run however, it just doesn't seem to want to signal it's done.

    Is there a different delegate routine that I need to setup for the group animation? I'm trying to make the image disappear at the conclusion of the group animation by hiding it's view. I just can't get it to be called when the group animation ends.

    Any help would be appreciated.
     
  2. kaydell.leavitt macrumors regular

    Joined:
    Apr 19, 2010
    #2
    Are you releasing self (the delegate) before it is being called? (Just a guess)
     
  3. Nraygun thread starter macrumors newbie

    Joined:
    May 9, 2005
    #3
    No. I don't see a release in my code in this area of code.

    The first two animations are using a UIView to animate and the last one is using a layer to animate.
     

Share This Page