NSDictionary *aProperties=[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:@"myboolkey"];
To retrieve a bool value from NSDictionary:
BOOL boolValue;
if([aProperties valueForKey:@"myboolkey"])
boolValue =[[aProperties valueForKey:@"myboolkey"] boolValue];
No comments:
Post a Comment