Skip to content

Instantly share code, notes, and snippets.

@tanshio
Last active October 2, 2015 07:45
Show Gist options
  • Save tanshio/c8daee129f0d708141a3 to your computer and use it in GitHub Desktop.
Save tanshio/c8daee129f0d708141a3 to your computer and use it in GitHub Desktop.
char
char index = 30;
NSData *data = [NSData dataWithBytes:&index length:sizeof(index)];
NSMutableData *md = [NSMutableData alloc];
[md appendData:data];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment