Created
November 9, 2018 16:02
-
-
Save edwardean/3229b320b072058002e3020aec33611a to your computer and use it in GitHub Desktop.
字符以16进制输出
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
NSString *asss = @"hello"; | |
for (NSInteger i = 0; i < asss.length; i++) { | |
printf("0x%x, ",[asss characterAtIndex:i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment