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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -