iPod 控件将退出我的应用程序
当用户双击主页按钮时,我希望允许在我的应用程序之上控制 iPod。我知道有一些应用程序允许这样做。不幸的是我的应用程序刚刚退出。
我需要设置什么才能允许这种行为吗? 我的应用程序是否有可能阻止 iPod 应用程序在其上方显示,因为它有时也会播放声音?
I would like to allow controlling the iPod on top of my application when the user double taps the home button. I know there are a few apps out there that allow this. Unfortunately my app just quits.
Do I have to set anything to allow this behavior?
Is it possible that my app prevents the iPod app from showing above it because it also plays a sound from time to time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果人们使用默认设置(大多数人都这样做),则双击 iPod 行为仅会在音乐已在播放时调出迷你播放器。
查看设置>一般>家。正如您所看到的,用户可以选择双击时发生多种情况。在该列表下方,有“iPod 控制”选项 - 播放音乐时,显示 iPod 控制。这就是您想要的,但不幸的是,您无法选择覆盖默认行为并在不播放音乐时显示 iPod 控件。
还有其他 2 个选项(不幸的是,两者都针对用户,而不是您):
可能不是您想要的答案,但这就是适合您的 iPhone 开发!
The double-tap-for-iPod behaviour, if people are using the defaults (most people do) only works to bring up the mini player if music is already playing.
Check out Settings > General > Home. As you can see, there are a variety of things the user can choose to happen on double-click. Below that list of things, there is the option for "iPod controls" - when playing music, show iPod controls. This is what you want, and unfortunately there is no way you can choose to override the default behaviour and show iPod controls when music isn't playing.
There are 2 other options (both for the user, not you unfortunately):
Probably not the answer you wanted, but that's iPhone development for you!