Created
July 23, 2012 21:24
-
-
Save fousa/3166324 to your computer and use it in GitHub Desktop.
NSNumber to NSData
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
NSUInteger index = 999; | |
NSData *payload = [NSData dataWithBytes:&index length:sizeof(index)]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
consider this: