Saturday, October 5, 2013

nsstring How to convert hexadecimal nsdata

posts by zzxap on 2012-08-31 11:13:28 Edit
120831040158

Every two converted into hexadecimal nsdata should be

C81F413A

12 into hexadecimal nsdata should be C
Reply:
First look at your string is not all decimal numbers it?
If this is enough to say.
Reply:
All characters are decimal digits
Reply:
Although this requires weird, but still can write a loop transformations look
Reply:
int int converted into hexadecimal and hexadecimal NSString very simple

But I just do not know how to convert an int to hex NSData
Reply:
Basic situation:
1 cycle, according to two characters taken out, makes up an integer.
2, will be an integer in the spell converted to the corresponding character added to the string

In fact, so simple a process, you can try to do something.
Reply:
7F reply quote:
basic situation:
1 cycle, according to two characters taken out, makes up an integer.
2, will be an integer in the spell converted to the corresponding character added to the string

In fact, so simple a process, you can try to do something.

Is nsdata not a string, I have written. . With byte

No comments:

Post a Comment