Customizing the list of settings that appear in the app Settings view

You can change the list of Settings items that appear in the app Settings view by modifying a list of settings key names

Perform this task in the copy of the DeploymentKitApp in Xcode on your computer.

Procedure

  1. In the Xcode Navigator, open Resources/Localizable.strings. Select the English version of Localizable.strings.
  2. In the editor, locate the string "SFSettingsListViewController_Settings_DisplayInAppKeys".
    This is a resource consisting of the names of settings keys, which are delimited by semi-colons and are used to control the settings displayed in the Settings view in the app. By default, we provide the following settings keys.
    • app_version
    • app_legal
    • connection_timeout
    • do_logging
    • email_support
  3. Add or delete settings keys from this list.
    Important: Be careful not to add spaces between entries, and be sure you preserve the semi-colons between items.

Example: remove the settings options logging and e-mail support

Original String Resource
"SFSettingsListViewController_Settings_DisplayInAppKeys" = 
"app_version;app_legal;connection_timeout;do_logging;email_support";
Modified String Resource
"SFSettingsListViewController_Settings_DisplayInAppKeys" = 
"app_version;app_legal;connection_timeout";

The entries do_logging and email_support were removed from the list to accomplish this task.

Note: You can find the settings key names used in this string in the file Settings/Settings.bundle/Root.plist.
Related concepts