iOS 调起电话
2016-09-21 本文已影响0人
MMOTE
一
UIWebView*callWebView = [[UIWebViewalloc]init];
NSURL*telURL = [NSURLURLWithString:@"tel:10086"];
[callWebViewloadRequest:[NSURLRequestrequestWithURL:telURL]];
[self.viewaddSubview:callWebView];
二
NSString*allString = [NSStringstringWithFormat:@"tel:10086"];
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:allString]];