How can I display the following bytes using NSLog?
const void *devTokenBytes = [devToken bytes];
Assuming that devToken
is of type NSData *
(from the bytes
call), you can use the description
method on NSData to get a string containing the hexadecimal representation of the data's bytes. See the NSData class reference.
NSLog(@"bytes in hex: %@", [devToken description]);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With