I came across this Stackoverflow Thread about listing countries and it's calling codes using libPhoneNumber library
The solution is this
Use the
getSupportedRegions()
method, then iterate these regions callinggetCountryCodeForRegion()
.
However, the accepted solution does not apply on the iOS version of libPhoneNumber. getSupportedRegions()
is not available on the iOS version
Any idea to do this in iOS using libPhoneNumber?