Objective-C formatting string for boolean?

后端 未结 9 1734
情深已故
情深已故 2020-12-13 11:38

What formatter is used for boolean values?

EDIT:

Example: NSLog(@\" ??\", BOOL_VAL);, what is ?? ?

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 12:11

    Format strings for use with NSLog and [NSString stringWithFormat] are documented here:

    http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html

    BOOL/bool/boolean are not even mentioned...

提交回复
热议问题