Created
September 21, 2012 17:35
-
-
Save jagill/3762811 to your computer and use it in GitHub Desktop.
KVCSerializer Boolean error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KVCModel *model = [[KVCModel alloc] init]; | |
model.aBoolean = NO; | |
NSDictionary *falseDict = [model objectToDictionary]; | |
NSLog(@"falseDict has boolean: %@", [falseDict objectForKey:@"aBoolean"]); | |
//2012-09-21 10:30:49.370 otest[12887:303] falseDict has boolean: 0 | |
model.aBoolean = YES; | |
NSDictionary *trueDict = [model objectToDictionary]; | |
NSLog(@"trueDict has boolean: %@", [trueDict objectForKey:@"aBoolean"]); | |
//2012-09-21 10:30:49.371 otest[12887:303] trueDict has boolean: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment