- (
void
)callPhone:(NSString *)phoneNumber
{
//phoneNumber = "18369......"
NSMutableString * str=[[NSMutableString alloc] initWithFormat:@
"tel:%@"
,phoneNumber];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}
(
void
)callPhone:(NSString *)phoneNumber
{
//phoneNumber = "18369......"
NSMutableString * str=[[NSMutableString alloc] initWithFormat:@
"tel:%@"
,phoneNumber];
UIWebView * callWebview = [[UIWebView alloc] init];
[callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:str]]];
[self.view addSubview:callWebview];
}
iOS 开发 关于应用中使用拨打电话那点事,布布扣,bubuko.com
原文:http://www.cnblogs.com/allenChan/p/3885131.html