我想编辑数组字典中的特定值(在键下:thumbnailImage)。例如,我想将 thepark.png 更改为 theplace.png。我如何在目标 C 中做到这一点?我还从 appbundle 将 plist 复制到了文档文件夹。
以下是我的 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>location</key>
<array>
<string>The Park</string>
<string>The Coffee Place</string>
<string>The Center Fountain</string>
</array>
<key>timestamp</key>
<array>
<string>Not found yet</string>
<string>Not found yet</string>
</array>
<key>thumbnailImage</key>
<array>
<string>thepark.png</string>
<string>thecoffeeplace.png</string>
<string>thecetnerfountain.png</string>
</array>
</dict>
</plist>