I’m trouble with check the Characters(a-z,A-Z) and special characters except(.) in NSString. I have a UITextField for Price, i need to pass the value for Price only Numbers with “.”[Ex: Price :- 20.00]. I need to check whether any letters,special characters are in NSString, If the Characters,special characters are in NSString (UITextField text), i need to alert the user to enter valid numbers for the Field “Price.”. Please help to solve this problem. Any suggestion/idea would be great. Thanks in advance.
I’m trouble with check the Characters(a-z,A-Z) and special characters except(.) in NSString. I have
Share
You can use
NSCharacterSetto find characters in strings: