How to print Boolean flag in NSLog?

后端 未结 11 2340
深忆病人
深忆病人 2020-12-02 04:06

Is there a way to print value of Boolean flag in NSLog?

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 04:16

    Apple's FixIt supplied %hhd, which correctly gave me the value of my BOOL.

提交回复
热议问题