的字符串我有以下結構的plist:獲取的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">
<array>
<dict>
<key>height</key>
<real>2075</real>
<key>name</key>
<string>Dublin-Pony-kids-25_thumb</string>
<key>width</key>
<real>1558</real>
</dict>
<dict>
<key>height</key>
<real>2219</real>
<key>name</key>
<string>Dublin-Pony-kids-26_thumb</string>
<key>width</key>
<real>1751</real>
</dict>
<dict>
<key>height</key>
<real>2532</real>
<key>name</key>
<string>Dublin-Pony-kids-27_thumb</string>
<key>width</key>
<real>1732</real>
</dict>
<dict>
<key>height</key>
<real>2430</real>
<key>name</key>
<string>Dublin-Pony-kids-28_thumb</string>
<key>width</key>
<real>1730</real>
</dict>
</array>
</plist>
我不知道如何獲得的NSString所有結果鍵 - >名稱。 我想要有像都柏林小馬-25_thumb,都柏林小馬-26_thumb,都柏林-Pony-kids-27_thumb,都柏林-Pony-kids-28_thumb的東西。
我可以像(NSString *)imageNameAtIndex:(NSUInteger)index {
那樣讀取它,但這隻返回一個值。我希望key-> name的所有值都是NSString
。
我再次對此有所幫助。