- //1、系统的打电话代码,不返回当前程序:
- [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://1008611"]];
- //2、用UIWebView来实现,打电话结束后会返回当前应用程序:
- UIWebView *callPhoneWebVw = [[UIWebView alloc] init];
- NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"tel://1008611"]];
- [callPhoneWebVw loadRequest:request];