iPhone : Best way to detect the end of UIImageView image sequence animation

前端 未结 3 1748
情深已故
情深已故 2021-01-18 00:41

We know that UIImageView has a very nice support for image sequence animation. We can easily create an array of UIImage objects, set the animationImages

3条回答
  •  鱼传尺愫
    2021-01-18 01:36

    Furthermore I could recommend setting default image of the UIImageView (property image) on the first frame of the animation and changing it to the last frame just after launching the animation (startAnimating method). This way we avoid the ugly blick which can occur when the animation is finished but the callback is not invoked.

提交回复
热议问题