objective c - How to print BOOLs -


this question has answer here:

i want print bool (which documented signed char) without compiler warnings:

nslog(@"parsing result = %hhd", parsingresult);  //  inside ios program. xocde 6 

but "format specifies type 'char' argument has type 'bool' (aka 'bool')".

nslog(parsingresult ? @"yes" : @"no"); 

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -