带有 PSToogleSwitch 的可选组
我想要一个类似于 iPhone WiFi 设置的设置捆绑行为。 如果您选择切换开关并将其设置为打开,则会出现具有特定设置的可选组。这是怎么做到的?我现在还没有找到任何线索。
I'd like to have a settings bundle behavior similar to the iPhone WiFi settings.
If you select the toggle switch and set it to on, an optional group with the specific settings appears. How is this done? I haven't found any clue by now.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您自己编写首选项包(越狱级别),则可以在交换机的“设置”选择器中动态添加和删除 PSSpecifier。如果这是针对 App Store 应用程序,我认为这是不可能的(在这种情况下,我建议尝试将这些首选项集成到您的应用程序中,您可以在其中对其显示和设置进行代码级控制。)
If you are writing a preferences bundle yourself (jailbreak-level), you can dynamically add and remove PSSpecifiers in your switch's "set" selector. If this is for an App Store application, I do not believe that is possible (in which case, I would suggest attempting to integrate these preferences into your application, where you have code-level control over their display and setup.)