views:

233

answers:

0

After weeks of frustration I was advised that the problem with my iPhone App was white spaces in the stored phone numbers. My XCode app phone dialer would only dial 7 digit numbers. ig; 555-1212. My question today is, is there a way to remove the white spaces?

My iPhone's Contact Book and revealed that my 10 digit numbers were automatically formatted as: (213) 555-1212 or 1 (213) 555-1212. When I changed my Phone Numbers to 1+2135551212 or 1213+5551212 the call completed perfectly. Since a developer has no control over how the objective end user enters phone numbers into their contact book, I am hoping there is some kind of procedural code that would either remove blank spaces in an Xcode/Cocoa iPhone project or maybe fill in the blanks?