1. Call Phone
-(void) Dialphonenumber: (NSString *) aphonenumber { *phoneurl = [Nsurl urlwithstring:[ NSString stringWithFormat:@ "tel:%@", Aphonenumber]]; if ( ! Phonecallwebview) { = [[UIWebView alloc] initwithframe:cgrectzero]; } [Phonecallwebview loadrequest:[nsurlrequest Requestwithurl:phoneurl]; }
2. Get Contacts
Summary: The main use of addressbook.framework and addressbookui.framework two frames
Addressbookui, as the name implies, is part of the UI and contains:
Address List controller: Abpeoplepickernavigationcontroller
Contact Person: Abpersonviewcontroller
New Contact: Abnewpersonviewcontroller
Unknown Contact: Abunknowpersonviewcontroller
AddressBook is more commonly used:
Abaddressbook Address Book staff's additions and deletions change
Query for Abperson Address Book
Abrecord a recording personnel, get the various attributes of the person (phone name company Mailbox notes ...)
Call phone/Get contacts