Converting HEX NSString To NSData
问题 I'm trying to convert a Hex NSString to NSData (I'm using the below attached code). The following is the output: <00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000> which looks totally irrelevant to me. Any idea/ suggestions on where its going wrong? NSString *strData = @"72ff63cea198b3edba8f7e0c23acc345050187a0cde5a9872cbab091ab73e553"; NSLog(@"string Data length is %d",[strData length]); NSMutableData *commandToSend= [[NSMutableData alloc] init]; unsigned char whole