Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我打算创建一个播放 ipod 音乐库的应用程序,然后该应用程序设置一个 NSTimer,它将在特定时间停止 ipod 音乐播放器。我的问题是当我进入后台模式时我的计时器是否仍会运行。是否可以在后台模式下停止 ipod 音乐播放器?
谢谢
[timer invalidate]
在您的代码中使用它。