My Application is on an iPad. I have a UIButton that I would like to mimic the action of when a user selects a phone number from a UITextField, and then selects the "Add to Contacts" button from the popover. In short, I would like that popover to appear over my UIButton when a user presses it.

I was just wondering if anyone has thought of possible ways to accomplish this, or is my only option to add contacts in iOS is to use ABUnknownPersonViewController?

有帮助吗?

解决方案

You should link the button to perform a method that pushes an ABNewPersonViewController to the top of the ABPeoplePickerNavigationControler, where the user can then go and enter the data. This is what the NewPerson vc is made for.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top