Set 04
Leggere e scrivere Dictionary, String, Array in file plist (Property List)
iPad, iPhone, MacOSX, Object-C | Soft! | Nessun Commento » |
I file Property lists sono molto comuni per una applicazione iPhone. Vediamo uno tramite l’esempio qui sotto:
<?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>CFBundleDevelopmentRegion>/key> <string>en>/string> <key>CFBundleDisplayName</key> <string>${PRODUCT_NAME}</string> <key>CFBundleIdentifier</key> <string>com.3Sixty.Test</string> <key>CFBundleName</key> <string>${PRODUCT_NAME}</string> ... <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> </dict> </plist>
Ultimi Commenti