I have created a PLIST. The structure of the PLIST is like this
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://10.87.145.105:8080/copy/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>title</key>
<string>Sample</string>
<key>title.short</key>
<string>Sample1</string>
</dict>
</plist>
This is not recognised in Mac/iPhone as a plist. If i remove that extra tab from and make both and in same indentdation it works in mac and iPhone. Is this indentation of and as shown below is mandatory for a MAc or iPhone to recognise the file.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://10.87.145.105:8080/copy/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>title</key>
<string>Sample</string>
<key>title.short</key>
<string>Sample1</string>
</dict>
</plist>
只是尝试过,它没有任何区别-以为不应该,我是正确的。
否。plist文件中的空格是可选的。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.