Hiding preferences items in the settings bundle

假如想象 提交于 2019-12-12 11:43:40

问题


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.

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.

Thanks for your help :)

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


回答1:


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.




回答2:


You can have an element only appear on an iPad or iPhone+iPod. To do this add a:

SupportedUserInterfaceIdioms key, that holds an array of supported idioms-strings, either "Pad" or "Phone". Including “Phone” will display the element on iPhone and iPod touch; including “Pad” will display it on iPad. Including both values will display it on both devices.



来源:https://stackoverflow.com/questions/7432134/hiding-preferences-items-in-the-settings-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!