I'm using ABNewPersonViewController to add a new contact. However, I want to ensure that the user inputs some fields. How do I achieve this?
I don't see any help from ABNewPersonControllerDelegate or from ABNewPersonViewController.
I'm using ABNewPersonViewController to add a new contact. However, I want to ensure that the user inputs some fields. How do I achieve this?
I don't see any help from ABNewPersonControllerDelegate or from ABNewPersonViewController.
Copyright © 2021 Jogjafile Inc.
Your only real choice is to implement the
ABNewPersonViewControllerDelegatedelegate methodnewPersonViewController:didCompleteWithNewPerson:. You will be given theABRecordRefof the new contact. You will then need to load that contact and see if there are values. If not, you can choose to delete the new contact.