版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011862058/article/details/51832967
Byte *bytes = (Byte *)[data bytes];
NSString *newHexStr = [NSString stringWithFormat:@"%02x",bytes[1]&0xff];///16进制数
Byte *bytes = (Byte *)[data bytes];
NSString *newHexStr = [NSString stringWithFormat:@"%02x",bytes[1]&0xff];///16进制数