After Animation, View position resets

后端 未结 6 523
悲哀的现实
悲哀的现实 2020-12-08 10:42

I am trying to make a view slide from top to bottom. This is not a big deal, I used CABasicAnimation for this. The problem is when I want to remove the view. I

6条回答
  •  青春惊慌失措
    2020-12-08 10:57

    This one bit me too. You want to set the animation's removedOnCompletion flag to NO. It defaults to YES, which means after the animation is complete, it's removed, and the view reverts to its initial state.

提交回复
热议问题