Given a country, how do I get the countryCode? The following method is not working
NSNumber* code = [phoneUtil getCountryCodeForRegion:country];
Given a country, how do I get the countryCode? The following method is not working
NSNumber* code = [phoneUtil getCountryCodeForRegion:country];
It is working, I used it like so:
[phoneUtil getCountryCodeForRegion:@"US"]
and the output was 1.
Note that you have to use the ISO Country Code, 2 Digit: "US", (you can find a list here).