ABRecordID用于地址簿中的记录(地址簿中插入记录的唯一ID) [英] ABRecordID for a record in addressbook(unique id for inserted record in addressbook)

查看:153
本文介绍了ABRecordID用于地址簿中的记录(地址簿中插入记录的唯一ID)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在向iphone的联系人添加记录时卡住了。

I got stuck while adding records to contacts of iphone.

情况是这样我有一个视图,其中创建了联系人并将其插入到iphone的联系人中。

Situation is this I have a view in which contacts are created and inserted to contacts of iphone.

我想要的是

有没有办法找到插入的(记录)联系人的唯一ID 。在其他视图中访问联系人需要这些。

Is there a way to find some unique ID of the (record) contact which is inserted. Which will be required to access the contacts in some other view.

请赐教。

推荐答案

在地址簿中插入新记录时,会自动为记录分配一个ABRecordID,您可以使用

When you insert a new record in the AddressBook, the record is automatically assigned an ABRecordID that you can retrieve using

ABRecordID ABRecordGetRecordID (
   ABRecordRef record
);

这篇关于ABRecordID用于地址簿中的记录(地址簿中插入记录的唯一ID)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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