Cocoa animationImages finish detection

前端 未结 3 2089
半阙折子戏
半阙折子戏 2020-12-22 04:55

I\'m doing an animation using animationImages and animationRepeatCount = 1; How can I detect when the animation is done?

Thanks, Tee

3条回答
  •  独厮守ぢ
    2020-12-22 05:21

    You don't get a notification when UIImageView animations are finished. You should use NSObject's performSelector:withObject:afterDelay: method to schedule some code to execute after the time is done, but it won't be perfect.

提交回复
热议问题