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]];

上一篇下一篇

猜你喜欢

热点阅读