Getting country calling prefix

后端 未结 10 1388
耶瑟儿~
耶瑟儿~ 2020-12-28 21:04

Just wondering whether there are easy ways to retrieve country calling code from a user\'s phone.

For example, my app would like to pre-fill country

10条回答
  •  情话喂你
    2020-12-28 21:54

    Use HMDiallingCode. It uses CoreLocation and reverse geocoding to determine the country of the user, then retrieve it's international dialling code.

提交回复
热议问题