简体   繁体   中英

how do i create a contact in iphone SDK?

I want to duplicate the functionality you see when you tap and hold a phone # in an email. You see a menu pop up and 2 of the options are "Create new contact" & "Add to existing contact". After selecting a contact, you then have a contact with the phone number displayed and can further edit the contact in the contact edit page. Try tapping and holding a phone # to see what I'm getting at.

Anyway, I'm not sure how to do this. I can create a contact via the SDK, but not sure how to display the contact edit screen pre-populated with the phone number.

thanks

I'd start with the section of the Address Book Programming Guide on the view controllers furnished by the system. Beyond that, perhaps you could post the code you're having trouble with?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM