如何在应用内添加联系人? [英] How to add a contact from within an app?

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

问题描述

我希望在我的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?

iPhone上新联系人屏幕的屏幕截图http://i48.tinypic.com/2uz7xic.jpg

推荐答案

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];

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

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