hidden layer upon completion of animation

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

  1. jacksongan macrumors member

    Aug 31, 2009
    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


    Staff Member

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

Share This Page