How do I read a value of a property list file key into a string for iphone app using Xcode
问题 I have a property list file "someFile.plist" and within the plist I have two rows "row1" and "row2" each with a string value that is either "Y" or "N" - If I want to check the "someFile.plist" file for "row2" to obtain the value of that row and read it into a string in objective c, how would I do that? I am coding for an iphone App using Xcode. 回答1: Load the .plist into a NSDictionary like: NSString *path = [[NSBundle mainBundle] pathForResource:@"filename" ofType:@"plist"]; NSDictionary