Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在不使用 ABNewPersonViewController 的情况下以编程方式将联系人添加到 iphone 联系人列表。我只想传递参数并希望 ABRecordRef 作为结果。这可能吗?
bool ABAddressBookAddRecord ( ABAddressBookRef addressBook, ABRecordRef record, CFErrorRef *error );
https://developer.apple.com/documentation/addressbook
ABGroupAddMember (group, contact, nil) ; ABAddressBookSave(inAddressBook, nil) ;
添加联系人后保存通讯录。