How to print BOOLs
How to print BOOLs
- Subject: How to print BOOLs
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 08 Aug 2014 10:20:17 +0700
I want to print a BOOL (which is documented to be a signed char) without any compiler warnings:
NSLog(@"shouldAutorotate %hhd", self.shouldAutorotate); // inside some iOS program. Xocde 6 beta 5.
But I get "Format specifies type 'char' but the argument has type 'BOOL' (aka 'bool')".
No idea what this "bool" thing is. Also UIViewController's shouldAutorotate returns BOOL (at least the documentation says so).
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden