iPhone 设置:创建相关设置?
是否可以创建“依赖设置”?例如,您有这样的分层设置:
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不。您要么需要更改 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.