get float value from nsdata objective-c iOS
问题 I am trying to get a float value from a NSData object which contains several hex values. e.g. EC 51 38 41 From this 4 Byte values i want to get the float value 11.52. How do i have to do this in xcode? I have tried it with NSScanner (scanFloat, scanHexFloat), NSNumberformatter and NSNumber , i created an Byte Array and tried float myFloat = *(float*)&myByteArray . All these Options i found here at stackoverflow. I tested it in Windows with C# and there it was no problem: byte[] bytes = new