ABRecordID for a record in addressbook(unique id for inserted record in addressbook)

只愿长相守 提交于 2020-01-01 03:45:07

问题


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:


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


来源:https://stackoverflow.com/questions/1939756/abrecordid-for-a-record-in-addressbookunique-id-for-inserted-record-in-addressb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!