ABRecordID for a record in addressbook(unique id f

2020-06-06 05:47发布

I got stuck while adding records to contacts of iphone.

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

What I want is

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.

Please enlighten me on this.

1条回答
走好不送
2楼-- · 2020-06-06 06:22

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
);
查看更多
登录 后发表回答