Skip to content

Instantly share code, notes, and snippets.

@BlackMac
Created June 25, 2009 20:34
Show Gist options
  • Save BlackMac/136148 to your computer and use it in GitHub Desktop.
Save BlackMac/136148 to your computer and use it in GitHub Desktop.
// add this to your header:
NSString * UIFormattedPhoneNumberFromStringWithCountry(NSString *,NSString *);
NSString * UIFormattedPhoneNumberFromString(NSString *);
// use this where you need it:
NSString *myNumber=UIFormattedPhoneNumberFromStringWithCountry(@"+18004664411",@"de");
NSString *yourNumber=UIFormattedPhoneNumberFromString(@"+18004664411");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment