打電話的方法有三種,網上說的人很多我這裏只寫一種大家推薦使用的
UIWebView *webView = [[UIWebView alloc]init];
[webView setBackgroundColor:ClearColor];
[self addSubview:webView];
NSURL *url = [NSURL URLWithString:@"tel://10086"];
[webView loadRequest:[NSURLRequest requestWithURL:url]];
這個web必須要要有父view,否則會不啓動打電話功能