情诗网 >情话短信 > 正文

UIApplication(调用电话和短信)

来源:情诗网    2021-03-09    分类:情话短信

  1. 调用电话
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://13120061014"]];
  2. 调用短信
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://13120061014"]];
  3. 调用safari
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.baidu.com"]];
  4. 调用mail
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://cz5551@163.com"]];

热门文章