BOOL myBool = NO; //******************** Initializing NSNumber Objects ************************* //** NSNumbers need to be released, if you`re not working with ARC! ** NSNumber *myBoolNumber = [[NSNumber alloc]initWithBool:myBool]; NSLog(@"myBoolNumber: %@", myBoolNumber);
2012-05-20 19:26:47.796 NSNumberSample[818:f803] myBoolNumber: 0