且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检索iOS中特定国家/地区的国家/地区电话号码

更新时间:2023-12-04 15:39:01

如果您的目标是获取用户当前位置的拨号代码,那么您应该使用 HMDiallingCode

If your goal is to get the dialling code of the user's current location then you should use HMDiallingCode.

它使用CoreLocation和反向地理编码来获取用户的当前国家/地区,然后检索它的拨号代码。

It uses CoreLocation and reverse geocoding to get current country of the user and then retrieve it's dialling code.