Skip to content

Instantly share code, notes, and snippets.

@jagill
Created September 21, 2012 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jagill/3762811 to your computer and use it in GitHub Desktop.
Save jagill/3762811 to your computer and use it in GitHub Desktop.
KVCSerializer Boolean error
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