Skip to content

Instantly share code, notes, and snippets.

@kaishin kaishin/dataSize.m
Created Jun 1, 2014

What would you like to do?
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
You can’t perform that action at this time.