I have an iphone application in which I want to check whether a string value is from 0 to 9. If it is like that, I want to do something else. Does anybody know how to do this?
Share
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.
This checks for the string being exactly 1 character long and that character being either 0, 1, 2, 3, 4, 5, 6, 7, 8 or 9.