向 iPhone 首选项/设置包添加按钮?

发布于 2024-09-27 00:33:01 字数 317 浏览 0 评论 0原文

只是想知道是否可以将 Safari 首选项中的“清除历史记录”、“清除 Cookies”等按钮添加到您自己的应用程序的设置包中?一直在挖掘开发文档,找不到任何按钮的 plist 说明符,所以我想知道这是否是 Apple 人员的内部 API?

点击按钮后,您会收到一个操作表,询问您是否真的想要执行此操作,然后可能会根据用户的输入进行一些回调。

还注意到 Nike + iPod 设置中有一个清晰的按钮,但同样,该应用程序可能可以访问我们无法访问的内部 API。

替代文本

Just wondering if it's possible to add a button like the "Clear History", "Clear Cookies" etc buttons in the Safari preferences to your own app's settings bundle? Been digging through the dev docs and can't find any plist specifier for a button, so I'm wondering if this is an internal API for the Apple guys?

After you hit the button, you get an action sheet asking you whether you really want to do it, and then presumably there is some callback based on the user's input.

Also noticed that the Nike + iPod settings have a clear button in them, but again, that app might have access to internal APIs that we don't.

alt text

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

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

发布评论

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

评论(3

内心旳酸楚 2024-10-04 00:33:01

不,这是不可能的。系统仅支持与应用程序内的值进行交互。您无法从设置应用程序运行代码,因此按钮将毫无用处。

No, this is not possible. The system only supports interacting with the values from within your app. You can't run code from the settings app so a button would be useless.

失退 2024-10-04 00:33:01

Nike+iPod 是一个 root 应用程序。在 root 下运行的任何东西基本上都可以从任何地方运行代码(有限制,沙箱是 ab**ch)如果你有兴趣,你可以使用 Theos 或 iOSOpenDev 制作越狱首选项捆绑包!它允许您创建一个可以运行按钮操作代码的根包。

Nike+iPod is a root application. Anything running under root can run code from basically anywhere (with restrictions, Sandbox is a b**ch) If you're interested you can make a jailbreak preferencebundle with Theos or iOSOpenDev! Which allows you to make a root bundle that can run button action code.

番薯 2024-10-04 00:33:01

iOSOpenDev,它扩展了 iOS 越狱式项目开发的 Xcode,提供了具有检查功能的项目模板框包含简单的 PreferenceLoader(基于 plist)或完整的 PreferenceLoader 包。

iOSOpenDev, which extends Xcode for iOS jailbreak-style project development, provides project templates that have a check boxes to include either a simple PreferenceLoader (plist-based) or a full PreferenceLoader bundle.

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