gpt4 book ai didi

iphone - iOS 应用程序为调用添加前缀

转载 作者:行者123 更新时间:2023-11-29 04:38:02 24 4
gpt4 key购买 nike

我已经启动了一个 iPhone 应用程序项目,该项目需要使用用户地址簿并在电话调用的开头添加前缀号码。

实现这一点的最佳方法是什么?是否已经为这种类型的函数构建了一个类?

最佳答案

Address Book Programming Guide

获得号码后:

NSString *phoneNumber = [NSString stringWithFormat:@"tel://%i%@", prefix, retrievedNumber];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

我还没有这样做,但这应该能让你继续。

关于iphone - iOS 应用程序为调用添加前缀,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10804068/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com