简体   繁体   English

telprompt:允许的字符少于电话本身。 哪个?

[英]telprompt: allows less characters than the phone itself. Which?

I'm using the address book of the iPhone to call numbers using telprompt:.我正在使用 iPhone 的通讯录使用 telprompt 拨打号码:。 A number with spaces and dashes doesn't work, while one with plus and numbers only does work.带有空格和破折号的数字不起作用,而带有加号和数字的数字只能起作用。 The iphone itself doesn't allow typing them, but synchronising with the mac gets me lots of (invalid?) phone numbers. iphone 本身不允许输入它们,但与 mac 同步会得到很多(无效?)电话号码。 Which characters are allowed, and why?允许使用哪些字符,为什么?

Try using this code, it leaves only numbers in the phone number string:尝试使用此代码,它只在电话号码字符串中留下数字:

NSString* phone = @"477 (38) 232-35-47";
//@"477 (38) 232-35-47"
phone = [[phone componentsSeparatedByCharactersInSet:[[NSCharacterSet decimalDigitCharacterSet] invertedSet]] componentsJoinedByString:@""];
//@"477382323547"
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"telprompt:%@", phone]]];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 telprompt:从电话的警报和通话记录中删除分机号 - telprompt: Removing extension no from alert and call log of phone 在PhoneGap iPhone应用程序中拨打少于符号的电话号码 - Dial a phone number with less than symbols in a PhoneGap iPhone application 提交同一个应用的应用商店版本,该版本实际上比其TestFlight版本的版本号少 - Submit App store build of same app which actually has a less version number than its TestFlight build iPhone NSNumberFormatter 小于 1 值 - iPhone NSNumberFormatter for less than 1 value 电话提示-我可以获取通话时间吗? - telprompt - can I get the call duration? 为什么viewDidUnload的调用频率低于viewDidLoad? - Why is viewDidUnload called less often than viewDidLoad? iPhone-在iPhone 4上不到一秒钟的时间调整UIImage的大小 - iPhone - Resizing an UIImage in less than a second on an iPhone 4 在哪里使用NSLayoutRelation小于或等于和NSLayoutRelationGreaterThanOrEqual - where to use NSLayoutRelation Less Than Or Equal and NSLayoutRelationGreaterThanOrEqual UIScrollview的可滚动区域大于scrollview本身 - Scrollable region of UIScrollview bigger than scrollview itself WhatsApp 图像存储在 iPhone 中的什么位置? 它是在服务器中还是在手机中? - Where are WhatsApp images stored in iphone? Is it in server or phone itself?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM