Is it possible to change iphone application settings from program? - iphone

Is it possible to change the application's settings menu from the program. For example if I have a list of options the user chooses from in the settings menu, is it possible to load those options from a JSON string, rather than specify them when creating the application settings menu?

No the settings will be created with the bundled settings plist file. The only way for you to change them programmatically is by using the NSUSerDefaults while your app is running.

Related

PSMultiValue in app

I have a settings bundle in my app and I want user can edit settings in app. I dont know how to do it with PSMultiValue. How to load the array for the table and how to save it.
Thank you
Wenn you define a Settings.bundle the settings will be avialable in the iPhone settings section. It will handling saving and updating for you.
Read Implementing Application Preferences
To get the same settings view within your app you can use InAppSettingsKit.

Hide Settings Bundle in Settings.app

I have created an iOS 4.0 app with a Settings bundle. I am using the InAppSettingsKit (http://www.inappsettingskit.com) which presents the settings in the app. This allows the user to modify those settings directly from within the app, without the need to go to the external iPhone Settings.app. As the settings are accessible from inside the app (and I am doing some custom styling to the in-app settings screen) I would like to stop the Settings bundle from appearing in the iPhone Settings.app. Is this possible?
Any help would be greatly appreciated.
InAppSettingKit allows the use of an internal only settings bundle. Rename Settings.bundle to be this and then the OS wont find it to put it in the Main Settings part
Check out "Some little extras" on the product page

InAppSettingsKit without saving to Settings app

I've seen there is a library called InAppSettingsKit - http://www.inappsettingskit.com/ - which lets your in-app settings mimic your settings within the Settings app.
But is there a way to get this to NOT use the Settings app as well? So it just allows you to change settings within the app. Or is there another library which does this?
InAppSettingKit lets you use a local bundle for the in-app part (see documentation) Try only including this and not including the Settings.bundle

How do you send a user to your app's settings from iPhone/iPad?

Is there a way to launch the iPhone/iPad's settings from within your app?
Check this out: It is a framework to display the apps's settings in both places, or just just on the app using the same type of display as the settings pane.
There is no way to do this. What apps usually do is recreate the same view the user would see if they opened the settings and then display that in-app.

Display iphone application settings within your application

The iphone supports a means of defining your application's settings such that it will automatically create a UI in the Settings app. I want to also allow the user to edit the application settings within the application but it'd be nice to reuse the same UI that is automatically created.
See: Application Settings
Is there a way to have your application display the settings using the same UI that the Settings application does?
No there is not a way to reuse the UI.
There is, however, a way to reuse the data. Settings.app will put the settings in NSUserDefaults under the keys specified in your Settings.bundle plist file. You can alter those values in your app, then switch to Settings.app and see that it will have changed to reflect your new values. This is really nice if you want to allow the user to edit settings in the app (if that's what they're used to) or in Settings.app (if that's what they're used to).
EDIT #1
You may want to look at this thread. There is a library called mySettings that would make building this easier.
EDIT #2
There are a couple libraries available now that do this:
InAppSettings
InAppSettingsKit