I have such a plist:
<dict> <key>New item</key> <dict> <key>document</key> <string>driving licence</string> <key>Overview</key> <string>a driving licence is required.......</string> </dict>
If I want to get an object, I would write something like this:
myString = [somedictionary objectForKey:@"Overview"];
But what if I want to get a "review" from my plist ??? I hope this is clear ..... Please do not give a negative vote .... I'm still learning! -)
UNITED VERSION:
Better to be more specific:
I have this code
for (NSDictionary *playDictionary in playDictionariesArray) { Play *play = [[Play alloc] init]; play.name = [playDictionary objectForKey:@"playName"];
which is sample Apple code: http://developer.apple.com/library/ios/#samplecode/TableViewUpdates/Introduction/Intro.html
In this example, playing the string returns the name of the playback in the header section, but I want to change it and get the βkeyβ in the title (in this case it will be βPlayNameβ).
THANKS TO EVERYONE: THIS HOW I SAID THIS:
NSMutableArray *anArray = [[NSMutableArray alloc] init]; [anArray addObject:@"Overview"]; [anArray addObject:@"pre-requirements"]; [anArray addObject:@"where"]; [anArray addObject:@"what"];
source share