Folks;
I'm attempting to understand how to migrate from AddressBook to CNContacts for macOS.
I've viewed 'https://developer.apple.com/videos/play/wwdc2015/223/'which is a good start.
But I'm stuck at CNContactViewController. Mojave docs show that CNContactViewController is avaialble for iOS 9+ & macOS 10.11+
The class notes state: "... The
CNContactViewController
class implements the view to display a contact. CNContactViewController
can display a new contact, unknown contact, or existing contact. You must use one of the designated initializers from init(forNewContact:)
, init(forUnknownContact:)
, or init(for:)
respectively. ..."But each of these 3 'init's are only implemented for iOS 9+
What am I missing here?
In my specific case today, how would I display a potential new contact to the user before executing a CNSaveRequest?
Thanks for any insight here.
Steve