You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I display an APContact using ABPersonViewController?
Or can APAddressBook supply me with a built in controller? What are my options here? I just want to use some pre-built controller that shows me the details of a single APContact. Can this be done?
The text was updated successfully, but these errors were encountered:
let apContact: APContact = ...
let recordId = ABRecordID(apContact.recordID.intValue)
let ab = ABAddressBookCreateWithOptions(nil, nil).takeRetainedValue()
let abRecord = ABAddressBookGetPersonWithRecordID(ab, recordId).takeUnretainedValue()
let controller = ABPersonViewController()
controller.displayedPerson = abRecord
navigationController?.pushViewController(controller, animated: true)
How do I display an APContact using ABPersonViewController?
Or can APAddressBook supply me with a built in controller? What are my options here? I just want to use some pre-built controller that shows me the details of a single APContact. Can this be done?
The text was updated successfully, but these errors were encountered: