Possible Duplicate:
Objective C parse hex string to integer
I need the integer value of a NSString representing hex number. For example how do I get the int value (10) of the NSString @”A”?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That would be the simplest code. The method scanHexInt returns a Bool indicating success which you’d want to handle.