zoukankan      html  css  js  c++  java
  • iOS 打电话 发短信功能的实现

    1.打电话
    NSMutableString * str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"186xxxx6979"];
        UIWebView * callWebview = [[UIWebView alloc] init];
        [callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:str]]];
        [self.view addSubview:callWebview];
     2.发短信
    NSURL *messageUrl=[NSURL URLWithString:[NSString stringWithFormat:@"sms://%@",phoneNember]];
        [[UIApplication sharedApplication]openURL:messageUrl];
  • 相关阅读:
    Codeforces 526D Om Nom and Necklace (KMP)
    HDU
    HDU
    Codeforces 219D
    HDU
    HDU
    POJ
    HDU
    HDU
    第二次作业
  • 原文地址:https://www.cnblogs.com/cfl911014/p/5217141.html
Copyright © 2011-2022 走看看