开发者

How do I send a new contact to the ios contacts app? [duplicate]

开发者 https://www.devze.com 2023-04-02 11:28 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to add a contact from within an app?
This question already has answers here: Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消