iPhone Settings.bundle - 如何禁用/启用基于其他设置的设置?
很难解释,但幸运的是有一个例子。在 iPhone 上,当您转到“设置”>“ Nike + iPod,在应用程序的设置中,当您将 Nike+iPod 设置为关闭时,它将禁用其余设置。我该怎么做?使用一项设置来禁用或关闭另一设置?
Hard to explain, but luckily there's an example. On an iPhone, when you go to Settings > Nike + iPod, in the app's settings, when you set Nike+iPod to off, it disables the rest of the settings. How do I do that? Use one setting to disable or toggle off another setting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 AppStore 应用程序,不,你不能这样做,就这样。
详细信息:Nike+iPod 使用一种称为“Preferences Bundle”的不同机制,它允许更多种类的说明符(例如按钮)和运行代码。要实时禁用设置,需要代码。 AppStore允许的“Settings Bundle”无法运行代码。所以这是不可能的。
For AppStore apps, no you can't do that, period.
Detail: Nike+iPod is using a different mechanism known as "Preferences Bundle", which allows more kinds of specifiers (e.g. buttons) and running code. To disable settings live, one need codes. "Settings Bundle" which AppStore allows cannot run code. So that cannot be done.