是否可以在设置应用程序中动态更改iPhone应用程序的设置页面? [英] Is it possible to dynamically alter an iphone app's settings page in the settings app?

查看:127
本文介绍了是否可以在设置应用程序中动态更改iPhone应用程序的设置页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我正在开发的iPhone应用程序,我希望能够动态添加或删除应用程序设置区域中的部分.理想情况下,我希望能够更改多值说明符中的选项列表,还可以添加新的行,这些行向下钻取到一个设置页面的副本中.我没有在Apple文档中看到任何有关此内容的信息,但是编译后是否有可能完全更改设置架构?

For my iPhone app I'm working on, i want to have the ability to dynamically add or remove sections to the settings area for my app. ideally I'd like to be able to alter the list of options in a multi-value specifier, and also to add new rows that drilldown into copies of one settings page. I haven't seen anything in the apple documentation on this, but is it possible to alter the settings schema at all after compiling?

推荐答案

据我所知,您无法通过SDK进行此操作,因为应用程序设置架构基于安装时部署的plist,并且您的由于沙箱,应用程序在运行时将无法访问该文件.

As far as I know, you cannot do this through the SDK, because the application settings schema is based on a plist that is deployed at install time, and your application will not have access to that file at runtime, because of the sandbox.

正如许多人所指出的那样,设置"应用程序实际上不再对琐碎的设置有用.我建议在您的应用程序中添加一个首选项"部分.但是,我当然不会告诉您任何有用的信息. =)

As many people have noted, the Settings app really stops being useful for anything more than trivial settings. I would suggest adding a preferences section inside your application. But of course I'm not telling you anything useful. =)

这篇关于是否可以在设置应用程序中动态更改iPhone应用程序的设置页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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