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