This is my first attempt to make an ios app.
I\'m using people picker to ask the user for a phone number, but when it retrieves with the code below, my NSStrin
See this answer: https://stackoverflow.com/a/6323208/60488
Basically:
NSString *cleanedString = [[phoneNumber componentsSeparatedByCharactersInSet:[[NSCharacterSet characterSetWithCharactersInString:@"0123456789-+()"] invertedSet]] componentsJoinedByString:@""];
For your case you may want to remove the characters "-", "(" and ")" from the character set.