1,拨打完电话回不到原来的应用,会停留在通讯录里,而且是不弹出提示直接拨打
NSMutableString *str=[[NSMutableStringalloc]initWithFormat:@"tel:%@",@"电话号码"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
2,打完电话后回到原来的程序,也会弹出提示
NSMutableString *str=[[NSMutableStringalloc]initWithFormat:@"tel:%@",@"电话号码"];
UIWebView *callWebview = [[UIWebViewalloc]init];
[callWebviewloadRequest:[NSURLRequestrequestWithURL:[NSURLURLWithString:str]]];
[self.view addSubview:callWebview];
3,这种方法也会回去到原来的程序里(注意这里的telprompt),也会弹出提示
NSMutableString* str=[[NSMutableStringalloc]initWithFormat:@"telprompt://%@",@"电话号码"];
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:str]];