ios - How to use NSLog to print out BOOL? -


this question has answer here:

i using nslog print debug information. bool, can use %d, wondering if standard way?

use :

nslog(@"value : %@", (your_condition) ? @"yes" : @"no"); 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -