1
我是objective C
的新手,我想閱讀plist並且比如說字符串是否具有此值,請執行此操作。如何閱讀plist
我已經試過這樣:
NSString *filePath = @"E/eg.plist";
NSMutableDictionary* plistDict = [[NSMutableDictionary alloc]
initWithContentsOfFile:filePath];
NSString *value;value = [plistDict
objectForKey:@"lang"];
if (NSString *value = @"1") {
mySwitch3.on = YES;
}