I am trying to show the number on iPhone dialer pad with spaces using tel:// url.
Wanted to show the number as xxx xxx xxx but when I directly give spaces in number string it wont show the number to dial.
Even I tried following code to
var url = "tel://155".addingPercentEncoding(withAllowedCharacters: charSet)
url = url! + "666"
url = url?.addingPercentEncoding(withAllowedCharacters: charSet)
url = url! + "908"
let telUrl = URL(string: url!)
but nothing works.
Can someone suggest me the way to to this?
Thank you
尝试添加连字符 (-) 而不是空格。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.