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.
我想做一个提示声音的应用程序。场景是这样的: 1. ipod 播放音乐 2. 用户启动我的应用程序 3. 我的应用程序决定提示声音 4. ipod 音乐变成静音或软声音 5. 我的应用程序提示声音直到完成 6. ipod 音乐恢复到原始音量
任何想法?
这实际上有点容易。我从 stackoverflow.com/questions/4138247/... 找到了答案。我们可以得到ipod的实例代码应该是这样的:[[MPMusicPlayerController iPodMusicPlayer] pause]; //做任何你想做的事 [[MPMusicPlayerController iPodMusicPlayer] 播放];