Search code examples
iphoneiosxcodeipad

Read-Only string in settings bundle


I've added a Settings.bundle, however while displaying version numbers I'd like the fields to be read-only.

I've seen a few suggestions that say to change the type from text to title, but when I do this, the settings entry isn't displayed.

enter image description here


Solution

  •         <array>    
                <dict>
                    <key>Type</key>
                    <string>PSGroupSpecifier</string>
                    <key>Title</key>
                    <string>version</string>
                </dict>
                <dict>
                    <key>DefaultValue</key>
                    <string>1.1</string>
                    <key>Key</key>
                    <string>version</string>
                    <key>Title</key>
                    <string>version</string>
                    <key>Type</key>
                    <string>PSTitleValueSpecifier</string>
                </dict>
            </array>
    

    I am able to add readonly variable 'Version' with the above dictionary in root.plist. Have you set using Title specifier ?? Or Try adding above dict. in your root.plist , this will add readonly title in your settings in group style.