Spotfire® Deployment Kit for Apple iOS

Making settings read-only

You can make a setting visible but read-only, so users cannot change it.

About this task

For this task, work in the Xcode Project navigator.

Procedure

  1. Browse to DeploymentKitApp > Settings > Settings > Root
  2. In the Property List view, find the setting to change to read only and expand its view to see its properties.
  3. For the setting's Type property, change the string value to Title.
    Note: If you edit this file in the Source Code view, change the value to PSTitleValueSpecifier.
  4. Save and close the file.

Results

The user can see the setting but not change it.

Example: Title is read-only

By default, the Title - Version property in Root is set to read only, because its Type key is set to Title.

Key Type Value
Item 1 (Title - Version) Dictionary (4 items)
Type String Title
Default Value String
Title String Version
Identifier String app_version
Note: In the Source Code view, this section is displayed as follows.
<dict>
   <key>Type</key>
   <string>PSTitleValueSpecifier</string>
   <key>Title</key>
   <string>About</string>