I'm confused on how to store a hex value into NSData. I want the value I will be storing to be 0x0F.
0x0F
Please could someone give me an example?
Here's how I've done that before:
UInt8 j= 0x0f; NSData *data = [[[NSData alloc] initWithBytes:&j length:sizeof(j)] autorelease];