Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经启动了一个 iPhone 应用程序项目,该项目需要使用用户通讯录并将前缀号码添加到电话的开头。
实现这一点的最佳方法是什么?是否已经为此类函数构建了一个类?
地址簿编程指南
拿到号码后:
NSString *phoneNumber = [NSString stringWithFormat:@"tel://%i%@", prefix, retrievedNumber]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];
我还没有这样做,但这应该会让你继续前进。