iOS调起打电话的功能

195 阅读1分钟

NSMutableString * str = [[NSMutableString alloc] initWithFormat:@"telprompt://%@",@"你的电话号码"];

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str] options:@{} completionHandler:nil];