iPhone 设置:创建相关设置?

发布于 2024-10-07 04:54:07 字数 207 浏览 0 评论 0原文

是否可以创建“依赖设置”?例如,您有这样的分层设置:

 - include animals
 -- include dogs
 -- include cats

其中切换动物会自动切换狗和猫(我知道我可以在代码中满足这一点,但是可以配置操作系统提供的设置屏幕,以便将狗的 UISwitch 自动设置为如果包含动物设置为关闭,则关闭?)

Is it possible to create "dependent settings"? e.g. you have hierarchical settings like this:

 - include animals
 -- include dogs
 -- include cats

where toggling animals would automatically toggle dogs and cats (I know I can cater for that in code, but can the settings screen that is provided by the OS be configured so the UISwitch for dogs is automatically set to off if include animals is set to off?)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

夏夜暖风 2024-10-14 04:54:07

不。您要么需要更改 UI,这样就不需要此切换,要么显示这两个选项并希望它不会让您的用户感到困惑,要么只在应用程序中包含您可以自己编写正确代码的设置。

这是一个非常烦人的限制。向苹果提交错误报告可能是值得的。

No. You'll either need to change your UI so this toggle is not required, display both options and hope it doesn't confuse your users or only include the settings inside your app where you can write the correct code yourself.

This is a really annoying limitation. It's probably worth raising a bug report with Apple.

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