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.
我正在开发一个 IOS 应用程序,我希望它具有暂停和取消暂停当前通过 ipod 播放的音乐的功能,就像 ipod 的播放/暂停按钮一样。反正有没有通过IOS做到这一点?我找到的唯一答案是处理通过应用程序在本地播放的歌曲和声音。
任何帮助都会很棒。非常感谢!
[[MPMusicPlayerController systemMusicPlayer] play]; [[MPMusicPlayerController systemMusicPlayer] pause];