Retrieving a country telephone code for a specific country in iOS

前端 未结 4 722
深忆病人
深忆病人 2021-02-04 21:35

I\'m quite new to iOS development and I\'m currently building my first app. I\'m trying to get a text field to automatically populate the telephone country code for a specific c

4条回答
  •  名媛妹妹
    2021-02-04 22:05

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

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

提交回复
热议问题