Eytan
Eytan

Reputation: 1835

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?

Upvotes: 0

Views: 2380

Answers (3)

Joost Schuur
Joost Schuur

Reputation: 4482

The AppPrefs sample app lays it out nice and succinctly too:

http://developer.apple.com/iphone/prerelease/library/samplecode/AppPrefs/Introduction/Intro.html

Upvotes: 0

rpetrich
rpetrich

Reputation: 32336

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.

Upvotes: 1

jlehr
jlehr

Reputation: 15617

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:

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.

Upvotes: 0

Related Questions