带有 PSToogleSwitch 的可选组

发布于 2024-08-24 15:20:43 字数 93 浏览 5 评论 0原文

我想要一个类似于 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 技术交流群。

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

发布评论

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

评论(1

无法言说的痛 2024-08-31 15:20:43

如果您自己编写首选项包(越狱级别),则可以在交换机的“设置”选择器中动态添加和删除 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.)

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