-1
而不是打印1或0.我不想輸出True或False。Objective-C bool真假隱蔽(NSDictionary)
這裏是我當前的代碼
NSString *plistPath = @"/Library/Preferences/TestPlist.plist";
NSDictionary *plistData = [NSDictionary dictionaryWithContentsOfFile:plistPath];
NSString *tester = [plistData valueForKey:@"MyKeyOption"];
NSLog(@"%@", [NSString stringWithFormat:@"%@", tester]);
_test.stringValue = tester;
在正確的方向任何幫助將不勝感激。
https://stackoverflow.com/questions/6358349/how-to-print-boolean-flag-in-nslog –
[如何在NSLog中打印布爾標誌?](https://stackoverflow.com /問題/ 6358349 /如何對打印布爾旗在-的NSLog) – waka