iOS 拨打电话

2019-12-30  本文已影响0人  唐人街的乞丐
  NSURL * url = [NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",@"10086"]];
    if ([[UIApplication sharedApplication] canOpenURL:url]) {
        [[UIApplication sharedApplication] openURL:url];
    }else{
        NSLog(@"不能打电话");
    }
上一篇 下一篇

猜你喜欢

热点阅读