如何将字符串转换为电话号码格式?目标c
我想将字符串转换为电话号码格式。例如,我有一个字符串,其中包含值“456897012”。现在我想将其转换为电话号码格式,例如 (456)897-012。 那么这个过程是怎样的呢?我怎样才能做到这一点?
I want to convert string into phone number format. For example I have string in which I have value, "456897012". Now I want to convert it in phone number format like as (456)897-012.
So what is process for that? How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想这样的事情应该能解决;
Something like this should work out I guess;
好吧,
假设你有旧手机
还没有测试过。
希望有帮助
Ok
Suppose you have the oldPhone
Have not test it.
Hope that helps