隐藏设置捆绑中的首选项 [英] Hiding preferences items in the settings bundle

查看:94
本文介绍了隐藏设置捆绑中的首选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是一个问题,我已经坚持了一段时间.我希望允许用户隐藏Root.plist上的某些设置.

Just a question i've been stuck on for a while. I would like the user to be allowed to hide some settings found on the Root.plist.

有人知道这是否可能吗?失败了,是否有可能实质上具有两个Root.plist文件,并根据变量在两个文件之间进行交换?请让我知道我尝试达到的目标是否存在根本上的错误.

Anybody know if this is possible? failing this is it possible to essentially have two Root.plist files and swap between the two depending upon a variable? Please let me know if there is fundamentaly anything wrong with what I am try to achieve.

感谢您的帮助:)

ps/或者,我可以在应用程序设置中灰显"选项吗?

ps/ Alternatively could I be able to "grey-out" options within the app settings?

推荐答案

否,很遗憾,您不能这样做.设置键是静态的,编译后无法更改.

No, unfortunately you cannot do this. Settings keys are static and cannot be changed after compilation.

您可以考虑在应用中手动创建设置"屏幕.

You might consider creating a "Settings" screen manually within your app.

这篇关于隐藏设置捆绑中的首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆