문제

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.

도움이 되었습니까?

해결책

Your only real choice is to implement the ABNewPersonViewControllerDelegate delegate method newPersonViewController:didCompleteWithNewPerson:. You will be given the ABRecordRef of 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top