I have set a bool value for key TCshow in my NSUserDefault, I want to run a nslog test whether the key is saved or not, and i m trying to printout the bool value. here is my cod
you should use
NSLog(flag ? @"Yes" : @"No");
here flag is your BOOL.
flag
BOOL