【发布时间】:2018-06-18 17:16:48
【问题描述】:
我希望用 * 字符调用。例如> *711313。
目前,我正在使用此代码:
NSString *str = [NSString stringWithFormat:@"tel:%@", tmp];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
我测试了两个案例:
tmp = @"719929292"; //还行吧。打电话。
tmp = @"*7128282"; //app没有反应。不要打电话。
如何使用 *(星号)调用?
【问题讨论】:
-
将
*替换为%2A,将#替换为%23
标签: ios character phone-call uiapplication