Question

I would like to use InAppSettingsKit only for displaying the settings in the Settings.app of the iPhone. I have different custom settings for in-app settings. Is this possible and how can this be achieved ?

Was it helpful?

Solution

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.

The plists are searched in this order:

InAppSettings.bundle/FILE~DEVICE.inApp.plist - InAppSettings.bundle/FILE.inApp.plist InAppSettings.bundle/FILE~DEVICE.plist InAppSettings.bundle/FILE.plist Settings.bundle/FILE~DEVICE.inApp.plist Settings.bundle/FILE.inApp.plist Settings.bundle/FILE~DEVICE.plist Settings.bundle/FILE.plist

I hope it helps!!

EDIT:

The InAppSettingsKit library searches automatically on all your settings bundles, in that order I wrote before. However, the settings.app only searches into the Settings.bundle. So, if you want a separated settings file for your app (using InAppSettingsKit) you can create a Settings.bundle for your settings app and a, e.g., InAppSettings.bundlefor your in-app settings.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top