我想将Hex String放到数组
NSString *hex = @"1a2b3c"; //3 bytes
uint8_t array[3];
memcpy(array, [hex cStringUsingEncoding:NSUTF8StringEncoding] ,3);
NSData *data = [NSData dataWithBytes:&array length:3];
NSLog(@"%@" , data);
OUTPUT变为ASCII:< 316132>
如果我希望输出为< 1A2B3C>,我该怎么做?