开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜