Created
May 20, 2013 04:41
-
-
Save iandundas/5610461 to your computer and use it in GitHub Desktop.
NSString format specifiers
This file contains hidden or 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
// Format specifiers: | |
%@ NSString* | |
%d Signed Integer | |
%i Signed Integer | |
%u Unsigned Integer | |
%f Float / Double | |
%x Hexidecimal Integer | |
%X Hexidecimal Integer | |
%o Octal Integer | |
%zu size_t | |
%p Pointer | |
%e Float / Double (in scientific notation) | |
%g Float / Double (as %f or %e, based on value) | |
%s C String | |
%.*s Pascal String | |
%c Character | |
%C Unicode Character | |
%ll Long Long | |
%llu Unsigned Long Long | |
%Lf Long Double |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment