-1
Statt 1 oder 0 zu drucken, möchte ich entweder True oder False ausgeben.Objective-c bool true und false covert (NSDictionary)
Hier ist mein aktueller Code
NSString *plistPath = @"/Library/Preferences/TestPlist.plist";
NSDictionary *plistData = [NSDictionary dictionaryWithContentsOfFile:plistPath];
NSString *tester = [plistData valueForKey:@"MyKeyOption"];
NSLog(@"%@", [NSString stringWithFormat:@"%@", tester]);
_test.stringValue = tester;
Jede Hilfe in der richtigen Richtung sehr geschätzt wird.
https://stackoverflow.com/questions/6358349/how-to-print-boolean-flag-in-nslog –
Mögliches Duplikat von [Wie wird das boolesche Flag in NSLog gedruckt?] (Https://stackoverflow.com/fragen/6358349/how-to-print-boolean-flag-in-nslog – waka