无法在iOS 7.1.2上拨打电话

时间:2015-06-04 14:27:04

标签: ios objective-c ios7

我想从应用程序拨打电话。为此,我使用了以下代码:

NSString *phoneNumber = [@"tel://" stringByAppendingString:strCareProviderPhone];

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

对于iOS 7.1.1和iOS 8.0,它的工作正常。对于iOS 7.1.2,它不起作用。对于iOS 7.1.2,电话号码格式为(999)9900000。 PS:我也尝试使用stringByReplacingOccurrencesOfString等字符串格式来表示括号和空格。但没有成功。

任何人都可以帮我解决这个问题。

提前致谢,

Akshay

0 个答案:

没有答案