How can I delay a method call for 1 second?(如何将方法调用延迟 1 秒?)
问题描述
有没有简单的方法将方法调用延迟 1 秒?
Is there an easy way delay a method call for 1 second?
我有一个对触摸事件作出反应的 UIImageView
.当检测到触摸时,应用程序中会出现一些动画.一秒钟后,我想调用另一个方法.在这种情况下,我不能使用 animationDidStop
选择器.
I have a UIImageView
that reacts on a touch event. When the touch is detected, some animations happen in the app. After one second, I want to call another method. In this case, I can't use the animationDidStop
selector.
推荐答案
文档参考
这篇关于如何将方法调用延迟 1 秒?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!