Created
November 23, 2013 19:27
-
-
Save elizaaverywilson/7618826 to your computer and use it in GitHub Desktop.
NSLog Token Cheat Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NSLog Tokens | |
// ---------------------------------------------------- | |
// Symbol .........|...Displays | |
// %@ .............|...id | |
// %d,%D,%i .......|...long | |
// %u,%U ..........|...unsigned long | |
// %hi ............|...short | |
// %hu ............|...unsigned short | |
// %qi ............|...long long | |
// %qu ............|...unsigned long long | |
// %x,%X ..........|...unsigned long printed as hexidecimal | |
// %p .............|...void * (an address printed in hexidecimal with a leading 0x) | |
// %o,%O ..........|...unsigned long printed as octal | |
// %f,%e,%E,%g,%G .|...double | |
// %c .............|...unsigned char as ASCII character | |
// %s .............|...char * (a null-terminated C string of ASCII characters) | |
// %S .............|...unichar * (a null-terminated C string of Unicode characters) | |
// %% .............|...A%character |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment