Localized phone number formatting

前端 未结 5 2068
时光说笑
时光说笑 2020-12-09 18:36

I\'ve looked into NSFormatter, NSNumberFormatter, and the other formatting classes, but can\'t find a build into solution. I need to format phone n

5条回答
  •  时光取名叫无心
    2020-12-09 19:01

    Unfortunately iOS does not have any public APIs for this. You can try to integrate libphonenumber that is a complete implementation for parsing and formatting international phone numbers. It has a C++ version so theoretically you can cross-link with it.

提交回复
热议问题