Treat it as an int:
NSlog(@"%d",yourBool)
... outputs 1 for YES and 0 for NO
If you want to use the YES / NO output:
NSLog(@"%@", (yourBool ? @"YES" : @"NO"));
Reason copied from objc.h:
#define YES (BOOL)1
#define NO (BOOL)0
PS: for decimal places (floats) this is not% d .... its:
NSLog(@"%f",2.33);
source
share