Changes to root.plist not showing on iphone

when I add new entries to my settings, add the root.plist file, create and launch the application, the new settings are not displayed in the application. Of course, I used a unique key for new entries.

In my root.plist file in the xcode project, the file shows the changes, but when I get the current file from iphone through the organizer, there are no changes there.

I am using iOs 4.0.1.

BR, Martin

+3
source share
2 answers

Root.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>StringsTable</key>
    <string>Root</string>
    <key>PreferenceSpecifiers</key>
    <array>
        <dict>
            <key>Type</key>
            <string>PSGroupSpecifier</string>
            <key>Title</key>
            <string>iParkschein Einstellungen</string>
        </dict>
        <dict>
            <key>Type</key>
            <string>PSTextFieldSpecifier</string>
            <key>Title</key>
            <string>Kennzeichen</string>
            <key>Key</key>
            <string>kennzeichen_preference</string>
            <key>DefaultValue</key>
            <string></string>
            <key>IsSecure</key>
            <false/>
            <key>KeyboardType</key>
            <string>Alphabet</string>
            <key>AutocapitalizationType</key>
            <string>None</string>
            <key>AutocorrectionType</key>
            <string>No</string>
        </dict>
        <dict>
            <key>Type</key>
            <string>PSTextFieldSpecifier</string>
            <key>Title</key>
            <string>Stadt</string>
            <key>Key</key>
            <string>stadt_preference</string>
            <key>DefaultValue</key>
            <string>Wien</string>
            <key>IsSecure</key>
            <false/>
            <key>KeyboardType</key>
            <string>Alphabet</string>
            <key>AutocapitalizationType</key>
            <string>None</string>
            <key>AutocorrectionType</key>
            <string>No</string>
        </dict>
        <dict>
            <key>Type</key>
            <string>PSToggleSwitchSpecifier</string>
            <key>Title</key>
            <string>Firmenrechnung</string>
            <key>Key</key>
            <string>firmenrechnung_preference</string>
            <key>DefaultValue</key>
            <true/>
        </dict>
        <dict>
            <key>Type</key>
            <string>PSTextFieldSpecifier</string>
            <key>Title</key>
            <string>Kennzeichen</string>
            <key>Key</key>
            <string>servicenummer_preference</string>
            <key>DefaultValue</key>
            <string></string>
            <key>IsSecure</key>
            <false/>
            <key>KeyboardType</key>
            <string>Alphabet</string>
            <key>AutocapitalizationType</key>
            <string>None</string>
            <key>AutocorrectionType</key>
            <string>No</string>
        </dict>
    </array>
</dict>
</plist>

if I read the keys from userdefaults and write them to the console, I will get the key, except for servicenummer_preference

BR, Martin

0
source

. , , .

0

Source: https://habr.com/ru/post/1757514/


All Articles