I need to pull out data from a plist array and put it in an NSArray. But it seems to not be working.
Here is my main file:
NSString *path = [[NSBundle mainBundle] pathForResource:@"htmlData" ofType:@"plist"];
NSMutableDictionary *tempDictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:path];
dictionary = tempDictionary;
[tempDictionary release];
NSMutableArray *nameArray = [[NSMutableArray alloc] init];
nameArray = [dictionary objectForKey:@"tagName"];
self.sitesArray = nameArray;
[nameArray release];
My plist file. Named: htmlData.plist
<plist version="1.0">
<dict>
<key>tagName</key>
<array>
<string><html></string>
<string><body></string>
</array>
</dict>
</plist>
It should set self.sitesArray
equal to @"<html>", @"<body>, nil;
but it is not working.