Skip to content

Instantly share code, notes, and snippets.

@edwardean
Created December 17, 2015 09:00
Show Gist options
  • Save edwardean/0cda0f92bace12b1260c to your computer and use it in GitHub Desktop.
Save edwardean/0cda0f92bace12b1260c to your computer and use it in GitHub Desktop.
You want to use %zd for signed, %tu for unsigned, and %tx for hex.
NSInteger integer = 1;NSLog(@"first number: %zd", integer);
NSUInteger uinteger = 1;NSLog(@"second number: %tu", uinteger);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment