I have started an iPhone app project that requires using the users address book and adding a prefix number to the beginning of a phone call.
What would be the best way to implement this? Is there a class already built for this type of function?
Address Book Programming Guide
Once you have the number:
NSString *phoneNumber = [NSString stringWithFormat:@"tel://%i%@", prefix, retrievedNumber];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];
I haven't done it, but that should get you going.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.