I am giving myself a headache over a seemingly simple problem
I have an NSString containing hex values "0x74 0x68 0x69 0x73 0x20 0x69 0x73 0x20 0x61 0x20 0x73 0x74 0x72 0x69 0x6e 0x67"
I convert that to array NSArray * myArray = [myString componentsSeparatedByString" "];
I then want to convert each of those strings to an int value.
How do I get from "0x73" to 115 to "s"?
I have tried calling [[myArray objectAtIndex:i] integerValue]; but that doesn't seem to work
Solved. Thanks for your help everyone!
I have an NSString containing hex values "0x74 0x68 0x69 0x73 0x20 0x69 0x73 0x20 0x61 0x20 0x73 0x74 0x72 0x69 0x6e 0x67"
I convert that to array NSArray * myArray = [myString componentsSeparatedByString" "];
I then want to convert each of those strings to an int value.
How do I get from "0x73" to 115 to "s"?
I have tried calling [[myArray objectAtIndex:i] integerValue]; but that doesn't seem to work
Solved. Thanks for your help everyone!