Possible Duplicate:
How to add a contact from within an app?
In our app, we want to have an 'add contact' button, which launches the contacts app with a prepopulated new contact. Is that possible, and if so how? I'd like to avoid having to design our开发者_开发技巧 own 'new contact' form.
See this Question for your answer.
Basically you need to use ABNewPersonViewController.
Instantiate a ABNewPersonViewController
and present it modally. You can optionally create a ABRecordRef
containing the values you want to be prepopulated and assign it to the controller's displayedPerson
property.
精彩评论