可可动画图像完成检测 [英] Cocoa animationImages finish detection

查看:71
本文介绍了可可动画图像完成检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用animationImages和animationRepeatCount = 1来制作动画; 如何检测动画何时完成?

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

谢谢, 三通

推荐答案

当UIImageView动画完成时,您不会收到通知.您应该使用NSObject的performSelector:withObject:afterDelay:方法来安排一些在时间结束后要执行的代码,但这并不完美.

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.

这篇关于可可动画图像完成检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆