576NSDictionary and NSArray plist examples

NSDictionary

<?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>arrayKey</key>
	<array>
		<string>string1</string>
		<string>string2</string>
		<string>string3</string>
		<string>string4</string>
	</array>
	<key>dicKey</key>
	<dict>
		<key>key1</key>
		<string>object1</string>
		<key>key2</key>
		<string>object2</string>
		<key>key3</key>
		<string>object3</string>
	</dict>
	<key>key2</key>
	<string>object2</string>
	<key>key3</key>
	<string>object3</string>
</dict>
</plist>

NSArray

<?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">
<array>
	<string>string1</string>
	<string>string2</string>
	<string>string3</string>
	<dict>
		<key>key1</key>
		<string>object1</string>
		<key>key2</key>
		<string>object2</string>
		<key>key3</key>
		<string>object3</string>
	</dict>
	<string>string5</string>
</array>
</plist>

At the end, after </plist>, there’s another CR.

490‘Initial interface orientation’ setting in Info.plisy

The Informatin Property List of iPhone Applications has the optional setting of Initial interface orientation. Is a NSString type, I was wondering, which values were supported, bzw required. Luckily, auto-complete is your friend.

For completeness’ sake, here are the accepted values:

Portrait (top home button)
Portrait (bottom home button)
Landscape (left home button)
Landscape (right home button)

102Info.plist

Info.plist with an automatic pop-up of all possible values. Nice.