Domanda

In my application I have UIBarButtonSystemItemAdd on right side of the navigation controller. On tapping of that plus icon I want to open address book in editable mode. Please refer the following image.

How to open address book UI for new contact in editable mode directly?

enter image description here

È stato utile?

Soluzione

In the AddressBookUI.framework, there is a class called ABNewPersonViewController. Basically, what you want to do is this:

ABNewPersonViewController *abnpvc = [[ABNewPersonViewController alloc] init];
[abnpvc setNewPersonViewDelegate: self];
[self presentViewController: abnpvc animated: YES completion: nil];

This brings up the view you are looking for.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top