我是新手objective C
,我想阅读一个 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;
}