- (void)callPhone:(id)sender {app
//方法一:用UIWebView实现,打电话会返回当前应用程序,合法可在APPSTORE 发布spa
UIWebView * callPhoneWebVw = [[UIWebView alloc ] init];orm
NSString * phoneNumber = @"10086";string
NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",phoneNumber]]];it
[callPhoneWebVw loadRequest:request];io
[self.view addSubview:callPhoneWebVw];request
//[callPhoneWebVw release]; //不能release 否则不能打电话程序
//方法二:使用openURL打电话 返回拔打电话界面,不返回应用程序方法
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]]; call
//方法三:使用私有方法打电话 返回应用程序 不能上appstore
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://10086"]];
}