I’m new in iPhone SDK. Now i’m working with plist file witch content strings. How can I set a value of the first element in the file with type ‘plist’ to NSString variable? I have plist content in NSArray:
NSString *countriesList = [[NSBundle mainBundle] pathForResource:@"Countries" ofType:@"plist"];
countries = [[NSArray alloc] initWithContentsOfFile:countriesList];
1 Answer