ios - How to use NSLog to print out BOOL? -
this question has answer here:
- how print out bool in objective c 6 answers
i using nslog print debug information. bool, can use %d, wondering if standard way?
use :
nslog(@"value : %@", (your_condition) ? @"yes" : @"no");
Comments
Post a Comment