iPod 控件将退出我的应用程序

发布于 2024-08-06 22:21:53 字数 140 浏览 3 评论 0原文

当用户双击主页按钮时,我希望允许在我的应用程序之上控制 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

水染的天色ゝ 2024-08-13 22:21:53

如果人们使用默认设置(大多数人都这样做),则双击 iPod 行为会在音乐已在播放时调出迷你播放器。

查看设置>一般>家。正如您所看到的,用户可以选择双击时发生多种情况。在该列表下方,有“iPod 控制”选项 - 播放音乐时,显示 iPod 控制。这就是您想要的,但不幸的是,您无法选择覆盖默认行为并在不播放音乐时显示 iPod 控件。

还有其他 2 个选项(不幸的是,两者都针对用户,而不是您):

  1. 如果他们在您的应用程序中关闭屏幕,然后双击主页按钮,迷你播放器将显示在屏幕上,然后他们可以播放音乐。当它们打开并解锁屏幕时,它们仍将在您的应用程序中。
  2. 如果他们有 3G-S 或最新的 iPod Touch,那么按住主页按钮将调出语音命令菜单,他们可以从中播放音乐。当该菜单关闭时,它们仍将位于您的应用程序中。

可能不是您想要的答案,但这就是适合您的 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):

  1. If they turn the screen off, whilst in your app, and then double-click the home button, the mini player will show on screen and then they can play music. They will then still be within your app when they turn on and unlock the screen.
  2. If they have a 3G-S or latest iPod Touch, then holding the home button will bring up the voice command menu, from which they can play music. They will then still be in your app when that menu closes.

Probably not the answer you wanted, but that's iPhone development for you!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文