Possible Duplicate:
Localized phone number formatting
I am trying to make it to where you type in a phone number and while typing, it realizes that there are so many characters and adds in parentheses: (xxx)xxx-xxxx. I have looked on Stack Overflow for any similar answers to my problem and I came along with this link.
However, I can’t use conversions to decimal form to solve my issue but have gained more knowledge in the fact that I probably should use textField:shouldChangeCharactersInRange:withString: method. I am also going to be needing to add in the hyphen as well in the phone number but figured if I can do it for one I can do it for the other.
Any suggestions?
How about this: