Created
June 1, 2014 21:17
-
-
Save kaishin/8b757375a113dce1ac07 to your computer and use it in GitHub Desktop.
Log NSData size in a human-readable format.
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(@"%@",[NSByteCountFormatter stringFromByteCount:data.length countStyle:NSByteCountFormatterCountStyleFile]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment