如何在iPhone应用程序中添加联系人? [英] How to add contact from within an iPhone app?

查看:123
本文介绍了如何在iPhone应用程序中添加联系人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望跟踪我的iPhone应用程序中的人-从现有的联系人数据中添加他们,或者提示用户输入新的联系人,然后将其保存到他们的联系人中。

I am looking to keep track of people in my iPhone app - either adding them from existing contact data, or prompting the user to enter a new contact which will be saved to their Contacts.

我知道我可以创建个人记录并将其写入通讯录中,是否可以显示此屏幕

还是我必须实现我自己的观点以方便创建联系人条目?

I know I can create a persons record add write it to the Contact book, is it possible to display this screen?
Or do I have to implement my own view to facilitate creating a contact entry?

>

推荐答案

Apple提供了 ABNewPersonViewController 。如果您需要一些示例代码,请参见快速联系人,尤其是本节:

Apple provides ABNewPersonViewController. If you'd like some sample code, see Quick Contacts, in particular, this section:

ABNewPersonViewController *picker = [[ABNewPersonViewController alloc] init];
picker.newPersonViewDelegate = self;

UINavigationController *navigation = [[UINavigationController alloc] initWithRootViewController:picker];
[self presentModalViewController:navigation animated:YES];

[picker release];
[navigation release];

这篇关于如何在iPhone应用程序中添加联系人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆