Skip to content

Instantly share code, notes, and snippets.

@kaishin
Created June 1, 2014 21:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaishin/8b757375a113dce1ac07 to your computer and use it in GitHub Desktop.
Save kaishin/8b757375a113dce1ac07 to your computer and use it in GitHub Desktop.
Log NSData size in a human-readable format.
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