rmaddy / RMPhoneFormat

RMPhoneFormat provides a simple to use class for formatting phone numbers in iOS apps. The formatting should replicate what you would see in the Contacts app for the same phone number.
266 stars 61 forks source link

Handle trunkcode case in format method #3

Open fduch2k opened 11 years ago

rmaddy commented 11 years ago

Can you give me an example or two of what types of entries this fixes? Thanks.

fduch2k commented 11 years ago

Sure - e.g. russian mobile - 8 (903) 1234567 - it has trunk number 8 in first position instead of +7 - international code. When I tried to format phone number while user typing it in text field, current version of RMPhoneFormat can't handle phone number part shorten than 8 (903)