Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone - how to put Settings bundle seen through System Settings App into your own App?

I want to create a settings page from within my app that looks exactly like the one that I would create in the System Settings Application using a Settings.bundle and Root.plist.

Is there an easy way to access the controls like PSMultiValueSpecifier etc. and add them to an actual View?

Thanks!

like image 363
adam Avatar asked May 08 '09 10:05

adam


People also ask

How do I add settings bundle to iOS app?

Adding the Settings BundleChoose File > New > New File. Under iOS, choose Resource, and then select the Settings Bundle template. Name the file Settings. bundle .

What should your app include in settings?

For example, WhatsApp for Android has a very good settings page where they group the items and also display what's inside them. The ideal groups could be 'General, Account, Notifications, Appearance, Privacy, Help & Support, and About.

What is root plist?

→ Root. plist : It is iPhone Settings Schema dictionary, which has keys as 'Strings Filename', 'SettingsPageTitle', and most important 'Preference Items' which is an Array type. It accepts only 6 values which are again dictionary types. we can select Toggle Switches, Sliders, Group, TextField, Title and Multi Value.


1 Answers

Here's another solution:

  • http://www.inappsettingskit.com/

    InAppSettingsKit is an open source solution to to easily add in-app settings to your iPhone apps. It uses a hybrid approach by maintaining the Settings.app pane. So the user has the choice where to change the settings...

    To support traditional Settings.app panes, the app must include a Settings.bundle with at least a Root.plist to specify the connection of settings UI elements with NSUserDefaults keys. InAppSettingsKit basically just uses the same Settings.bundle to do its work. This means there's no additional work when you want to include a new settings parameter. It just has to be added to the Settings.bundle and it will appear both in-app and in Settings.app. All settings types like text fields, sliders, toggle elements, child views etc. are supported...

like image 109
Mark Mackay Avatar answered Oct 05 '22 06:10

Mark Mackay