iPhone:我可以同时运行两个计时器吗?
我的游戏程序一次运行两个计时器。用于显示计时器逻辑和游戏逻辑。到目前为止,没有任何问题。两者似乎都工作正常。它会存在吗,或者会在任何时候产生任何问题或崩溃吗?当我想一次停止计时器时,我可以一次使两个计时器“无效”吗?有人对此有建议吗?
谢谢。
My game program is running two timers at a time. For showing timer logic and game logic. As far as now, no problems. Both seems to be working fine. Can it be there or will it create any problems or crash at any point of time? When i want to stop the timers at a time, can i just 'invalidate' both timers at a time? Does anyone has suggestion on this?
thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够根据需要创建任意数量的计时器,并根据需要使其中任何一个计时器无效。
You should be able to create as many timers as you need and invalidate any of them as needed.