gpt4 book ai didi

ios - 如何以编程方式将 plist 文件添加到 Setting.bundle?

转载 作者:行者123 更新时间:2023-12-01 16:00:28 25 4
gpt4 key购买 nike

我正在尝试以编程方式将 plist 文件添加到我的 iOS 项目中的 Settings.bundle 中。我该怎么做呢?

我用了Apple's API查找放置创建的 plist 文件的位置,以查看 Settings.bundle 是否会在那里检查 plist 文件但它无法识别它,并且子 Pane 会进入空白屏幕而不是显示设置。

原因是用户登录到我的应用程序我希望在设置应用程序中显示不同的设置

最佳答案

你没有。 Settings.bundle 应该在编译时创建,并且是固定的(以及作为应用程序构建过程的一部分进行签名。)

the Settings.bundle documentation其中明确指出(强调):

A Settings bundle has the name Settings.bundle and resides in the top-level directory of your app’s bundle.



强调的部分是告诉我您不能将捆绑包放在其他任何地方。 This answer证实了我刚才所说的。

有条件显示的设置是 also not possible .

关于ios - 如何以编程方式将 plist 文件添加到 Setting.bundle?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16797817/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com