hidden layer upon completion of animation

Discussion in 'iOS Programming' started by jacksongan, May 15, 2010.

  1. jacksongan macrumors member

    Joined:
    Aug 31, 2009
    #1
    the problem that i m facing is that if i use sth like this :

    layer.hidden = YES;

    it will skip the animation and the layer will disappear immediately.

    If i dun add that, the animation will run, yet at the end of the animation the layer will revert back to its original state. removeFromSuperLayer yields the same effect as hidden.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Look into using UIView's class method setAnimationDidStopSelector:
     

Share This Page