当前位置: 代码迷 >> Iphone >> iphone 拨通电话的API
  详细解决方案

iphone 拨通电话的API

热度:15   发布时间:2016-04-25 06:29:02.0
iphone 拨打电话的API

今天在网上看到这个,先留着

+ (void) makeCall:(NSString *)phoneNumber
{????
????NSURL *phoneNumberURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@", phoneNumber]];
????NSLog(@"make call, URL=%@", phoneNumberURL);
????
????[[UIApplication sharedApplication] openURL:phoneNumberURL];????
}

  相关解决方案