美文网首页
iOS 拨打电话

iOS 拨打电话

作者: 唐人街的乞丐 | 来源:发表于2019-12-30 17:35 被阅读0次
      NSURL * url = [NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",@"10086"]];
        if ([[UIApplication sharedApplication] canOpenURL:url]) {
            [[UIApplication sharedApplication] openURL:url];
        }else{
            NSLog(@"不能打电话");
        }
    

    相关文章

      网友评论

          本文标题:iOS 拨打电话

          本文链接:https://www.haomeiwen.com/subject/gebmoctx.html