简体   繁体   English

如何在iPhone的设置应用程序中添加设置

[英]How can I add settings in the settings application for the iPhone

I have my user preferences set to display in the system-settings application BUT I want to give them the option of adding additional settings. 我将用户首选项设置为显示在系统设置应用程序中,但我想给他们提供添加其他设置的选项。

Specifically, the user has a group 'favorites' in the settings bundle and they then can put in the details of their three favorite contacts. 具体来说,用户在设置包中有一个“收藏夹”组,然后他们可以输入其三个收藏夹联系人的详细信息。 However, I want to give the user the option of adding more. 但是,我想给用户添加更多选项。

I know how to do this with inapp but can this be done through the settings application? 我知道如何使用inapp进行操作,但是可以通过设置应用程序完成此操作吗?

The settings layout visible in the Settings app is defined by your Settings bundle and can't be changed by your application. 在“设置”应用中可见的设置布局是由“设置”捆绑包定义的,不能由您的应用更改。 Your best bet is to move your settings inside your application. 最好的选择是在应用程序内部移动设置。

You would need to add a Settings bundle to your app. 您需要将“设置”捆绑包添加到您的应用中。 Read Apple's document on Application Settings for details on how to set this up: 请阅读“应用程序设置”上的Apple文档,以获取有关如何进行设置的详细信息:

http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ApplicationSettings/ApplicationSettings.html http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ApplicationSettings/ApplicationSettings.html

The Settings app will look for your Settings bundle and load it when it starts up. “设置”应用将查找您的“设置”捆绑包,并在启动时将其加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM